:root {
  --bg-body: #050816;
  --bg-elevated: #0b1020;
  --bg-elevated-soft: #10172f;
  --accent: #34d0ff;
  --accent-soft: rgba(52, 208, 255, 0.16);
  --accent-strong: #19b3ff;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.4);
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.65);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --transition-fast: 160ms ease-out;
  --transition-normal: 220ms ease;
  --header-height: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top left, #1f2937 0, transparent 55%),
    radial-gradient(circle at bottom right, #111827 0, transparent 55%),
    var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-weight: 600;
}

p {
  margin: 0 0 0.75em;
}

ul {
  padding-left: 1.2em;
}

main {
  min-height: calc(100vh - var(--header-height) - 160px);
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-light {
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.6),
    rgba(15, 23, 42, 0.9)
  );
}

.section-header {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-header h2 {
  font-size: 28px;
}

.section-header p {
  color: var(--text-muted);
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--bg-elevated-soft);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-normal),
    box-shadow var(--transition-normal), border-color var(--transition-normal),
    background var(--transition-normal);
}

.card::before {
  content: "";
  position: absolute;
  inset: -120%;
  background: radial-gradient(
    circle at top left,
    rgba(52, 211, 153, 0.5),
    transparent 55%
  );
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.card p {
  font-size: 14px;
  color: var(--text-muted);
}

.card ul {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.95);
  border-color: rgba(52, 211, 153, 0.65);
  background: radial-gradient(
      circle at top left,
      rgba(34, 197, 235, 0.16),
      transparent 55%
    ),
    var(--bg-elevated-soft);
}

.card:hover::before {
  opacity: 0.35;
}

.mockup-card {
  background: radial-gradient(
      circle at top left,
      rgba(56, 189, 248, 0.22),
      transparent 55%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(52, 211, 153, 0.18),
      transparent 45%
    ),
    #020617;
  border-radius: 26px;
  padding: 20px 22px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.95);
}

.image-placeholder {
  min-height: 220px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(148, 163, 184, 0.55);
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 16px;
  gap: 8px;
}

.image-placeholder strong {
  font-size: 14px;
  color: var(--text-main);
}

.image-placeholder p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.image-placeholder.small {
  min-height: 120px;
  margin-top: 12px;
}

.media-image {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.28);
  object-fit: cover;
  background: rgba(15, 23, 42, 0.55);
  box-shadow: var(--shadow-soft);
}

.hero-media-image {
  min-height: 260px;
  max-height: 420px;
}

.small-media-image {
  margin-top: 12px;
  height: 150px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 14px;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast),
    transform var(--transition-fast), box-shadow var(--transition-fast),
    border-color var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #020617;
  box-shadow: 0 18px 40px rgba(56, 189, 248, 0.65);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 55px rgba(56, 189, 248, 0.85);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(148, 163, 184, 0.5);
  color: var(--text-main);
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: rgba(15, 23, 42, 1);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.5);
  color: var(--text-main);
}

.btn-ghost:hover {
  border-color: var(--accent);
  background: rgba(15, 23, 42, 0.85);
}

.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  font-size: 14px;
  color: var(--accent);
}

.text-link::after {
  content: "↗";
  font-size: 11px;
  margin-left: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(22px);
  background: linear-gradient(
      to bottom,
      rgba(15, 23, 42, 0.92),
      rgba(15, 23, 42, 0.85)
    ),
    radial-gradient(circle at top left, rgba(30, 64, 175, 0.35), transparent);
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
}

.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: conic-gradient(from 160deg, #22c55e, #0ea5e9, #22c55e);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #020617;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.6);
}

.logo-image {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.logo-text {
  font-size: 18px;
}

.nav {
  display: flex;
  align-items: center;
  position: relative;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  font-size: 14px;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--accent), #22c55e);
  transition: width var(--transition-fast);
}

.nav-list a:hover {
  color: var(--text-main);
}

.nav-list a:hover::after {
  width: 100%;
}

.nav-list a.is-active {
  color: var(--accent);
}

.nav-list a.is-active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text-main);
  margin: 0 auto;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-3.5px) rotate(-45deg);
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  padding: 40px 0 32px;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617);
  color: var(--text-muted);
  font-size: 13px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 32px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.footer-desc {
  max-width: 360px;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 48px;
}

.footer-links h4 {
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-main);
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 4px;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  padding-top: 12px;
}

.hero {
  padding-top: 96px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.6fr);
  gap: 40px;
  align-items: center;
}

.hero-content h1 {
  font-size: 34px;
  letter-spacing: 0.02em;
}

.hero-content p {
  color: var(--text-muted);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 12px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--accent);
}

.hero-meta span {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-device {
  width: 100%;
  max-width: 340px;
}

.device-top {
  display: flex;
  justify-content: flex-start;
  gap: 6px;
  margin-bottom: 14px;
}

.device-top .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.8);
}

.device-body {
  border-radius: 18px;
  padding: 18px;
  background: radial-gradient(circle at top, #0f172a, #020617);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.battery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.battery-grid span {
  display: block;
  aspect-ratio: 1 / 1.8;
  border-radius: 8px;
  background: linear-gradient(180deg, #22c55e, #16a34a);
  box-shadow: 0 8px 18px rgba(34, 197, 94, 0.8);
}

.battery-grid span:nth-child(3),
.battery-grid span:nth-child(4),
.battery-grid span:nth-child(7),
.battery-grid span:nth-child(8) {
  background: linear-gradient(180deg, #e5e7eb, #9ca3af);
  box-shadow: none;
}

.device-caption {
  font-size: 12px;
  color: var(--text-muted);
}

.page-hero {
  padding-top: 96px;
}

.page-hero h1 {
  font-size: 30px;
}

.page-hero p {
  max-width: 520px;
  color: var(--text-muted);
}

.anchor-links {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.anchor-links a {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
}

.feature-card,
.solution-card,
.scene-card,
.value-card,
.product-card {
  min-height: 0;
}

.scene-card h3 {
  font-size: 16px;
}

.scene-card p {
  font-size: 13px;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 26px;
  border-radius: 24px;
  border: 1px solid rgba(56, 189, 248, 0.5);
  background: radial-gradient(circle at top left, #0ea5e9, transparent 55%),
    radial-gradient(circle at bottom right, #22c55e, transparent 50%),
    #020617;
  box-shadow: 0 22px 65px rgba(8, 47, 73, 0.95);
}

.cta-text h2 {
  margin-bottom: 4px;
}

.cta-text p {
  margin: 0;
  color: var(--text-muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-item h3 {
  font-size: 16px;
}

.faq-item p {
  font-size: 14px;
  color: var(--text-muted);
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.3fr);
  gap: 32px;
  align-items: start;
}

.about-side-card h3 {
  font-size: 16px;
  margin-top: 4px;
}

.about-side-card p {
  font-size: 14px;
  color: var(--text-muted);
}

.timeline {
  position: relative;
  margin-top: 12px;
  padding-left: 14px;
  border-left: 1px solid rgba(148, 163, 184, 0.5);
}

.timeline-item {
  position: relative;
  padding: 12px 0 12px 16px;
}

.timeline-dot {
  position: absolute;
  left: -9px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--accent), #22c55e);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.3);
}

.timeline-content h3 {
  font-size: 15px;
}

.timeline-content p {
  font-size: 14px;
  color: var(--text-muted);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 3fr);
  gap: 32px;
  align-items: start;
}

.contact-info h3 {
  font-size: 16px;
  color: var(--text-main);
  margin-bottom: 10px;
}

.contact-info p {
  margin-bottom: 4px;
  font-size: 14px;
  color: var(--text-muted);
}

.contact-form {
  background: var(--bg-elevated-soft);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: var(--shadow-soft);
}

.form-row {
  margin-bottom: 14px;
}

.form-row label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-main);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition-fast),
    box-shadow var(--transition-fast), background var(--transition-fast);
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.6);
  background: rgba(15, 23, 42, 1);
}

.form-error {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #fb7185;
  min-height: 16px;
}

.form-success {
  margin-top: 8px;
  font-size: 13px;
  color: #4ade80;
  min-height: 18px;
}

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 420ms ease-out, transform 420ms ease-out;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* News list & article */
.news-archive .section-header {
  text-align: left;
  margin-left: 0;
  margin-bottom: 28px;
}

.news-archive .section-header p {
  color: var(--text-muted);
}

.news-panel {
  background: var(--bg-elevated-soft);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.news-list-styled {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-scrollable {
  max-height: 520px;
  overflow-y: auto;
  padding-right: 6px;
}

.news-list-styled li {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.news-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.news-item-cover-link {
  display: block;
}

.news-cover {
  width: 220px;
  height: 124px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.news-cover-placeholder {
  width: 220px;
  height: 124px;
  border-radius: 10px;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  background: rgba(15, 23, 42, 0.55);
}

.news-item-content {
  min-width: 0;
}

.news-item-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.45;
}

.news-item-summary {
  margin: 8px 0 10px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item-date {
  color: var(--text-muted);
  font-size: 14px;
}

.news-list-styled a {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.news-list-styled a:hover {
  color: var(--accent);
}

.news-list-styled p {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

.news-pager {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.news-pager #newsPageInfo {
  font-size: 14px;
  color: var(--text-muted);
}

.news-pager button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 767px) {
  .news-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .news-cover,
  .news-cover-placeholder {
    width: 100%;
    height: 180px;
  }

  .news-item-title {
    font-size: 18px;
  }
}

.article-page .article-body {
  font-size: 15px;
  color: var(--text-muted);
}

.article-page .article-body p {
  margin-bottom: 1em;
}

.article-page .article-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--accent);
}

.related-news {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
}

.related-news h2 {
  font-size: 18px;
  margin-bottom: 12px;
}

.related-news ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.related-news li {
  margin-bottom: 8px;
}

.related-news a {
  color: var(--accent);
  font-size: 14px;
}

.page-404 {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
}

.page-404 h1 {
  font-size: 28px;
}

.page-404 p {
  color: var(--text-muted);
}

/* Admin (后台) */
.admin-page {
  padding: 48px 0 80px;
}

.admin-page table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-elevated-soft);
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: 14px;
}

.admin-page th,
.admin-page td {
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 10px 12px;
  text-align: left;
}

.admin-page th {
  background: rgba(15, 23, 42, 0.85);
  color: var(--text-main);
}

.admin-page a {
  color: var(--accent);
}

.admin-news-cover {
  width: 90px;
  height: 54px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.admin-box {
  max-width: 420px;
  margin: 80px auto;
  padding: 28px 26px;
  background: var(--bg-elevated-soft);
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.admin-box h1 {
  margin-top: 0;
}

.admin-box form label {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
}

.admin-box input {
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-main);
}

.admin-box button[type="submit"] {
  margin-top: 8px;
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  font-size: 15px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #020617;
  font-weight: 600;
}

.admin-edit form label {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
}

.admin-label-body {
  margin-top: 8px;
}

.admin-cover-upload {
  margin-bottom: 16px;
}

.admin-cover-preview {
  margin-bottom: 10px;
  min-height: 120px;
  max-width: 360px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.85);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-cover-preview.is-empty {
  display: none;
}

.admin-cover-preview img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  display: block;
}

.admin-cover-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 6px;
}

.admin-cover-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.admin-wangeditor {
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.35);
  overflow: hidden;
  margin-bottom: 16px;
}

.admin-wangeditor .w-e-text-container {
  background: #fff !important;
  color: #111827 !important;
}

.admin-wangeditor .w-e-toolbar {
  background: #f8fafc !important;
  border-color: rgba(148, 163, 184, 0.5) !important;
}

.admin-edit input,
.admin-edit textarea,
.admin-edit select {
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-main);
}

.admin-edit button[type="submit"] {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #020617;
  font-weight: 600;
}

.admin-page .error {
  color: #fb7185;
  margin-bottom: 12px;
}

.admin-page form {
  margin: 0;
}

.admin-page td form select,
.admin-page td form input[type="text"] {
  width: 100%;
  margin-bottom: 6px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-main);
}

.admin-page td form button {
  width: 100%;
  padding: 6px 8px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #020617;
  font-weight: 600;
}

.admin-page td form button.admin-text-delete {
  width: auto;
  padding: 0;
  margin-left: 8px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #fb7185;
  font-weight: 500;
  text-decoration: none;
}

.admin-page td form button.admin-text-delete:hover {
  color: #f43f5e;
  text-decoration: underline;
}

.admin-pagination {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-pagination a {
  color: var(--accent);
}

.admin-pagination span {
  color: var(--text-muted);
  font-size: 14px;
}

@media (max-width: 1023px) {
  .hero-inner,
  .about-intro,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .section {
    padding: 56px 0;
  }

  .hero,
  .page-hero {
    padding-top: 80px;
  }

  .hero-inner {
    gap: 28px;
  }

  .hero-content h1 {
    font-size: 26px;
  }

  .header-inner {
    height: 64px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-list {
    position: absolute;
    inset-inline: 16px;
    top: 64px;
    background: rgba(15, 23, 42, 0.98);
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    padding: 10px 14px;
    flex-direction: column;
    gap: 6px;
    transform-origin: top;
    transform: scaleY(0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease-out, transform 160ms ease-out;
  }

  .nav-list.is-open {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
  }

  .nav-list a {
    padding: 6px 0;
  }

  .footer-links {
    flex-direction: column;
    gap: 16px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 540px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .card,
  .contact-form {
    padding: 18px 16px;
  }

  .cta-inner {
    padding: 18px 16px;
  }
}
