* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

a {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

a:focus,
a:active {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg: #05030c;
  --bg-alt: #0f0a1d;
  --card: rgba(255, 255, 255, 0.05);
  --glass: rgba(75, 74, 255, 0.15);
  --primary: #7b5dff;
  --primary-strong: #5f2bff;
  --text: #f1f3ff;
  --muted: #9aa0c2;
  --accent: #30d7ff;
  font-family: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'PingFang SC', 'HarmonyOS Sans';
}

body {
  background: linear-gradient(180deg, #05030c 0%, #090617 40%, #05030c 100%);
  color: var(--text);
  line-height: 1.6;
}

body.lang-en .lang-zh {
  display: none;
}

body.lang-zh .lang-en {
  display: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.hero {
  padding: 2.5rem clamp(1rem, 5vw, 6rem) 4rem;
  min-height: 90vh;
  background: radial-gradient(circle at 10% 20%, rgba(68, 55, 255, 0.35), transparent 50%),
    radial-gradient(circle at 80% 10%, rgba(48, 215, 255, 0.4), transparent 45%);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo span {
  font-weight: 600;
}

.logo small {
  display: block;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  align-items: center;
}

.copy h1 {
  font-size: clamp(2.8rem, 4vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.lead {
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 46ch;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.btn {
  border: none;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: linear-gradient(120deg, var(--primary-strong), var(--accent));
  color: white;
  box-shadow: 0 10px 35px rgba(95, 43, 255, 0.35);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn.tertiary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ghost {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  color: var(--text);
  font-size: 0.95rem;
}

.pill {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 600;
  display: block;
}

.stat-label {
  color: var(--muted);
  font-size: 0.85rem;
}

.hero-visual {
  position: relative;
  padding: 3rem;
}

.orb {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  filter: blur(0px);
  position: absolute;
  opacity: 0.8;
}

.orb-main {
  background: linear-gradient(135deg, var(--primary-strong), var(--accent));
  top: 10%;
  right: 0;
}

.orb-secondary {
  background: linear-gradient(135deg, rgba(48, 215, 255, 0.7), rgba(123, 93, 255, 0.7));
  bottom: 5%;
  left: 10%;
}

.panel {
  background: rgba(10, 8, 30, 0.7);
  padding: 2rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  backdrop-filter: blur(12px);
}

.panel ul {
  margin-top: 1rem;
  list-style: none;
}

.panel ul li {
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.section {
  padding: 4rem clamp(1rem, 6vw, 6rem);
}

.section.dark {
  background: rgba(5, 5, 17, 0.8);
}

.section.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  align-items: start;
}

.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.about-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.compliance-inline {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.service-grid,
.news-grid,
.pricing-grid,
.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .service-grid,
  .news-grid,
  .pricing-grid,
  .market-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.card {
  padding: 1.75rem;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Portal页面专用样式 */
.portal .card {
  opacity: 1;
  transform: translateY(0);
}

.service-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(123, 93, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-weight: 600;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--muted);
  font-size: 0.95rem;
  min-height: 96px;
}

.eyebrow {
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
  margin-top: 0.75rem;
}

.news-card time {
  font-size: 0.85rem;
  color: var(--muted);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.pricing-card h3 {
  font-size: 2.4rem;
  margin-bottom: 0.75rem;
}

.pricing-card ul {
  list-style: none;
  margin: 1rem 0;
  color: var(--muted);
}

.pricing-card ul li {
  margin-bottom: 0.5rem;
}

.market-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 1rem 0;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.market-card {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.market-card h3,
.market-card p {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.panorama {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(123, 93, 255, 0.15));
}

.story {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.story-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
}

.story-card ul {
  margin-top: 1rem;
  list-style: none;
  color: var(--muted);
}

.story-card ul li {
  margin-bottom: 0.5rem;
}

.compliance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
}

.license-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.license-card img {
  width: 100%;
  display: block;
}

.license-info ul {
  list-style: none;
  margin-top: 1rem;
  color: var(--muted);
}

.license-info li {
  margin-bottom: 0.5rem;
}

.cta {
  background: rgba(123, 93, 255, 0.08);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.cta-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  width: 100%;
}

.cta-form input {
  padding: 0.85rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(5, 5, 20, 0.6);
  color: var(--text);
}

.site-footer {
  padding: 3rem clamp(1rem, 4vw, 4rem);
  background: #030109;
  width: 100%;
  overflow-x: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  max-width: 100%;
}

.footer-col {
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.footer-col .eyebrow {
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--text);
}

.footer-tagline {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-legal {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.footer-legal-item {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.footer-contact {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  line-height: 1.6;
  word-break: break-word;
}

.footer-contact a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: var(--accent);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.6;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
  width: 100%;
}

.footer-meta-left,
.footer-meta-right {
  flex: 1;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.footer-meta-left {
  text-align: left;
}

.footer-meta-right {
  text-align: right;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .footer-meta {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-meta-left,
  .footer-meta-right {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .site-footer {
    padding: 2rem 1rem;
  }
}

.auth-body {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #0a0a1f 0%, #05030c 50%, #0a0a1f 100%);
  position: relative;
  overflow: hidden;
}

.auth-body::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(123, 93, 255, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
}

.auth-body::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(48, 215, 255, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
}

.auth-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.auth-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  min-height: 0;
}

.auth-logo {
  text-align: center;
  margin-bottom: 3rem;
}

.auth-logo h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  background: linear-gradient(135deg, #7b5dff 0%, #30d7ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.auth-tagline {
  color: var(--muted);
  font-size: 1rem;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: rgba(10, 8, 30, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.auth-header p {
  color: var(--muted);
  font-size: 0.95rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label > span {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(5, 5, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: var(--text);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(5, 5, 20, 0.8);
  box-shadow: 0 0 0 3px rgba(123, 93, 255, 0.1);
}

.form-group input::placeholder {
  color: var(--muted);
}

.error-message {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255, 75, 102, 0.15);
  border: 1px solid rgba(255, 75, 102, 0.3);
  border-radius: 12px;
  color: #ffb5c3;
  font-size: 0.9rem;
}

.btn-login {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--primary-strong) 0%, var(--accent) 100%);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(123, 93, 255, 0.3);
  margin-top: 0.5rem;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(123, 93, 255, 0.4);
}

.btn-login:active {
  transform: translateY(0);
}

.auth-footer-links {
  text-align: center;
  margin-top: 1.5rem;
}

.link-back {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}

.link-back:hover {
  color: var(--accent);
}

.auth-info {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.auth-info p {
  margin-bottom: 0.5rem;
}

.auth-info strong {
  color: var(--text);
  font-weight: 500;
}

.auth-wrapper .site-footer {
  margin-top: auto;
  padding: 2rem 1rem;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .auth-container {
    padding: 1.5rem 1rem;
    min-height: 0;
  }
  
  .auth-wrapper .site-footer {
    padding: 1.5rem 1rem;
    flex-shrink: 0;
  }
}


.portal {
  padding: 2.5rem clamp(1rem, 5vw, 5rem);
  background: linear-gradient(180deg, #05030c, #0a0a1f 60%, #05030c);
  color: var(--text);
}

.portal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.portal-grid {
  display: grid;
  gap: 2rem;
}

.portal-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.settings-form {
  display: grid;
  gap: 1.5rem;
}

.settings-form h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
}

.settings-form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text);
}

.settings-form label > span {
  color: var(--text);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.settings-form input,
.settings-form textarea {
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.settings-form input:focus,
.settings-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(123, 93, 255, 0.1);
}

.settings-form textarea {
  resize: vertical;
  min-height: 100px;
}

.settings-form button[type="submit"] {
  padding: 1rem 2rem;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--primary-strong) 0%, var(--accent) 100%);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 1rem;
}

.settings-form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(123, 93, 255, 0.3);
}

@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero {
    padding-top: 1.5rem;
  }
  .panel {
    margin-top: 2rem;
  }
  .cta {
    padding: 2rem;
  }
  .portal-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .portal-actions {
    width: 100%;
  }
}



