﻿@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;800&family=Exo+2:wght@400;500;600;700&display=swap");

:root {
  --bg-start: #07090d;
  --bg-end: #161a20;
  --surface: rgba(20, 24, 31, 0.86);
  --surface-strong: rgba(26, 31, 40, 0.95);
  --surface-muted: rgba(33, 39, 50, 0.84);
  --text: #edf2f7;
  --text-soft: #98a7bc;
  --line: rgba(244, 183, 64, 0.16);
  --primary: #d6a44f;
  --primary-strong: #f1c979;
  --accent: #7ecad6;
  --warning: #d6a44f;
  --danger: #ff7878;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Exo 2", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(214, 164, 79, 0.16), transparent 24%),
    radial-gradient(circle at 20% 18%, rgba(126, 202, 214, 0.08), transparent 20%),
    linear-gradient(160deg, #05070a 0%, #0b0e13 35%, #141922 100%);
  letter-spacing: 0.01em;
  perspective: 1400px;
}

a {
  color: var(--primary-strong);
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 85%);
  opacity: 0.35;
}

.trust-bar {
  padding: 10px 16px;
  text-align: center;
  color: #f4dfb1;
  background: linear-gradient(90deg, rgba(32, 27, 18, 0.98), rgba(55, 44, 27, 0.94));
  border-bottom: 1px solid rgba(244, 183, 64, 0.2);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(10, 12, 16, 0.94), rgba(10, 12, 16, 0.78));
  border-bottom: 1px solid rgba(244, 183, 64, 0.14);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
}

.navbar-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  animation: fadeUp 0.75s ease both;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  text-decoration: none;
  font-family: "Orbitron", "Exo 2", sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform-style: preserve-3d;
  transition: transform 0.25s ease;
}

.nav-brand:hover {
  transform: translateY(-1px);
}

.nav-brand-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 220, 150, 0.22);
  transform: translateZ(18px);
}

.nav-brand-text {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.nav-toggle {
  display: none;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: #f6deb0;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-link,
.nav-action,
.user-chip {
  color: rgba(237, 242, 247, 0.92);
  text-decoration: none;
  border-radius: 999px;
  padding: 9px 14px;
  transition: 0.22s ease;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
}

.nav-link:hover,
.nav-action:hover,
.user-chip:hover {
  background: rgba(214, 164, 79, 0.12);
  color: #fff8eb;
}

.nav-action.primary {
  background: linear-gradient(135deg, rgba(214, 164, 79, 0.98), rgba(241, 201, 121, 0.96));
  color: #14181f;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(255, 220, 150, 0.2);
}

.nav-action.primary:hover {
  background: linear-gradient(135deg, rgba(241, 201, 121, 0.98), rgba(255, 227, 172, 0.98));
}

.nav-actions,
.user-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-nav {
  position: relative;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(241, 201, 121, 0.94), rgba(132, 95, 30, 0.98));
  color: #101419;
  font-weight: 800;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  padding: 10px;
  background: rgba(18, 22, 28, 0.98);
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(244, 183, 64, 0.14);
  display: none;
}

.user-dropdown.open {
  display: block;
}

.user-dropdown a,
.user-dropdown button {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
  background: rgba(214, 164, 79, 0.12);
}

.user-dropdown .danger {
  color: var(--danger);
}

.hero,
.page-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 20px 24px;
  color: #fff;
  animation: fadeUp 0.85s ease both;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
}

.hero-card,
.panel,
.card,
.auth-card {
  background: var(--surface);
  border: 1px solid rgba(214, 164, 79, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  transform-style: preserve-3d;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.hero-card:hover,
.panel:hover,
.card:hover,
.auth-card:hover {
  transform: translateY(-6px) rotateX(4deg) rotateY(-4deg);
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.38);
  border-color: rgba(241, 201, 121, 0.24);
}

.hero-copy {
  padding: 20px 0;
  animation: fadeUp 1s ease both;
}

.hero-copy h1,
.page-header h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  font-family: "Orbitron", "Exo 2", sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-copy p,
.page-header p {
  margin: 0;
  color: rgba(232, 237, 242, 0.82);
  font-size: 17px;
}

.hero-side {
  padding: 28px;
  color: var(--text);
  animation: fadeUp 1.1s ease both;
}

.hero-side h2,
.panel h2,
.card h2,
.auth-card h1,
.auth-card h2 {
  margin-top: 0;
  margin-bottom: 14px;
  font-family: "Orbitron", "Exo 2", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.layout,
.page-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px 40px;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.panel {
  padding: 26px;
}

.muted {
  color: var(--text-soft);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge.primary { background: rgba(214, 164, 79, 0.16); color: #f2cd85; }
.badge.success { background: rgba(126, 202, 214, 0.12); color: #98e1eb; }
.badge.warning { background: rgba(214, 164, 79, 0.16); color: #f2cd85; }
.badge.neutral { background: rgba(255, 255, 255, 0.08); color: #e2e8f0; }
.badge.danger { background: rgba(255, 120, 120, 0.14); color: #ffb0b0; }

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
}

.btn.primary {
  background: linear-gradient(135deg, rgba(157, 116, 40, 0.96), rgba(241, 201, 121, 0.96));
  color: #11151b;
  box-shadow: 0 0 0 1px rgba(255, 220, 150, 0.16), 0 12px 26px rgba(214, 164, 79, 0.18);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #eef2f7;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn.success {
  background: linear-gradient(135deg, rgba(76, 130, 145, 0.95), rgba(126, 202, 214, 0.94));
  color: #101419;
}

.btn.warning {
  background: linear-gradient(135deg, rgba(101, 78, 35, 0.95), rgba(214, 164, 79, 0.95));
  color: #101419;
}

.info-banner,
.notice,
.empty,
.highlight-box {
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.info-banner {
  background: linear-gradient(135deg, rgba(126, 202, 214, 0.14), rgba(43, 57, 70, 0.92));
  color: #dafaff;
  border: 1px solid rgba(126, 202, 214, 0.18);
}

.notice {
  background: linear-gradient(135deg, rgba(68, 54, 24, 0.92), rgba(27, 24, 21, 0.96));
  color: #f3d9a5;
  border: 1px solid rgba(214, 164, 79, 0.22);
}

.empty {
  background: rgba(255, 255, 255, 0.04);
  color: #98a7bc;
  border: 1px dashed rgba(214, 164, 79, 0.28);
  text-align: center;
}

.highlight-box {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at top right, rgba(214, 164, 79, 0.14), transparent 42%);
  border: 1px solid rgba(214, 164, 79, 0.16);
}

.list {
  display: grid;
  gap: 14px;
}

.list-item,
.news-item,
.software-item,
.info-item,
.product-item {
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.list-item:hover,
.news-item:hover,
.software-item:hover,
.info-item:hover,
.product-item:hover {
  transform: translate3d(0, -4px, 0);
  border-color: rgba(241, 201, 121, 0.18);
  background: rgba(38, 45, 56, 0.94);
}

.list-item h3,
.news-item h3,
.software-item h3,
.product-item h3 {
  margin: 0 0 8px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.stat-card {
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid rgba(214, 164, 79, 0.12);
  box-shadow: var(--shadow);
}

.stat-value {
  font-size: 32px;
  font-weight: 800;
  margin: 8px 0;
  font-family: "Orbitron", "Exo 2", sans-serif;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: #d7dee7;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 13px;
}

.input,
textarea.input,
select.input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 11, 16, 0.7);
  color: #f6f8fb;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.input:focus,
textarea.input:focus,
select.input:focus {
  outline: none;
  border-color: rgba(241, 201, 121, 0.72);
  box-shadow: 0 0 0 4px rgba(214, 164, 79, 0.12);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-soft);
}

.checkbox-row input {
  margin-top: 5px;
}

.message {
  display: none;
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 18px;
  font-size: 14px;
}

.message.show { display: block; }
.message.error { background: rgba(127, 34, 34, 0.28); color: #ffd1d1; border: 1px solid rgba(255, 120, 120, 0.28); }
.message.success { background: rgba(126, 202, 214, 0.14); color: #b8f1f8; border: 1px solid rgba(126, 202, 214, 0.28); }
.message.info { background: rgba(214, 164, 79, 0.14); color: #ffe0a2; border: 1px solid rgba(214, 164, 79, 0.24); }

.auth-wrap {
  min-height: calc(100vh - 68px);
  display: grid;
  place-items: center;
  padding: 28px 20px 40px;
}

.auth-card {
  width: min(100%, 520px);
  padding: 32px;
}

.auth-card.compact {
  width: min(100%, 720px);
}

.password-meter {
  display: grid;
  gap: 8px;
}

.password-meter-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.password-meter-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  transition: width 0.25s ease, background 0.25s ease;
}

.password-meter-fill.weak { width: 33%; background: #ef4444; }
.password-meter-fill.medium { width: 66%; background: #f59e0b; }
.password-meter-fill.strong { width: 100%; background: #7ecad6; }

.media-card img,
.product-gallery img,
.guide-image,
.showcase-card img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.5s ease, box-shadow 0.5s ease, filter 0.5s ease;
}

.media-card:hover img,
.product-gallery:hover img,
.guide-image:hover,
.showcase-card:hover img {
  transform: scale(1.03) translateY(-4px);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.32);
  filter: saturate(1.05);
}

.product-gallery {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.showcase-card {
  position: relative;
  overflow: hidden;
}

.showcase-card.flat-hover:hover {
  transform: translateY(-4px);
}

.showcase-visual {
  position: relative;
  min-height: 380px;
  padding: 24px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.06), transparent 55%),
    linear-gradient(180deg, rgba(19, 24, 31, 0.98), rgba(11, 14, 19, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.showcase-visual::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 16px;
  border: 1px solid rgba(241, 201, 121, 0.08);
  pointer-events: none;
}

.showcase-visual img {
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 22px 32px rgba(0, 0, 0, 0.36));
}

.showcase-card-content {
  position: relative;
  z-index: 1;
  padding-top: 22px;
}

.showcase-card-content h2 {
  margin-bottom: 10px;
}

.showcase-card-content p {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.75;
}

.detail-visual {
  position: relative;
  min-height: 420px;
  padding: 26px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.05), transparent 52%),
    linear-gradient(180deg, rgba(19, 24, 31, 0.98), rgba(11, 14, 19, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.detail-visual::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 16px;
  border: 1px solid rgba(241, 201, 121, 0.08);
  pointer-events: none;
}

.detail-visual img {
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 20px 32px rgba(0, 0, 0, 0.34));
}

.detail-visual.narrow img {
  max-width: 52%;
  max-height: 290px;
}

.info-grid {
  display: grid;
  gap: 14px;
}

.info-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.float-in {
  animation: floatIn 0.9s ease both;
}

.float-in.delay-1 { animation-delay: 0.12s; }
.float-in.delay-2 { animation-delay: 0.24s; }
.float-in.delay-3 { animation-delay: 0.36s; }

.footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 20px 40px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 14px;
}

.footer a {
  color: #fff;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translate3d(0, 26px, -40px) rotateX(8deg);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateX(0deg);
  }
}

@media (max-width: 900px) {
  .hero,
  .grid.two,
  .grid.three,
  .form-grid.two,
  .product-gallery,
  .showcase-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .navbar-content {
    min-height: 64px;
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 6px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-main,
  .nav-actions,
  .user-nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-link,
  .nav-action,
  .user-chip {
    text-align: center;
  }

  .hero,
  .page-header,
  .layout,
  .page-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .auth-card {
    padding: 24px;
  }

  .info-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .showcase-card img {
    max-height: 240px;
  }

  .showcase-visual {
    min-height: 300px;
    padding: 18px;
  }

  .showcase-card-content {
    padding-top: 18px;
  }

  .detail-visual {
    min-height: 320px;
    padding: 18px;
  }

  .detail-visual img,
  .detail-visual.narrow img {
    max-width: 100%;
    max-height: 220px;
  }
}
