/* ===== CSS Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #f0c040;
  --primary-dark: #d4a832;
  --bg-dark: #0a0e27;
  --bg-card: #1a1f3a;
  --bg-card-hover: #222845;
  --text-light: #ffffff;
  --text-muted: #b0b8d0;
  --text-dark: #0a0e27;
  --glass-bg: rgba(26, 31, 58, 0.6);
  --glass-border: rgba(240, 192, 64, 0.15);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: #ffd966;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin-top: 0.5rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Header & Navigation ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 14, 39, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: background var(--transition);
}

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

.logo {
  flex-shrink: 0;
  transition: transform var(--transition);
}

.logo:hover {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: var(--primary);
  background: rgba(240, 192, 64, 0.1);
}

.nav-menu li a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-actions button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  line-height: 1;
}

.nav-actions button:hover {
  color: var(--primary);
  background: rgba(240, 192, 64, 0.1);
}

.login-btn {
  background: var(--primary) !important;
  color: var(--text-dark) !important;
  font-weight: 700;
  font-size: 0.85rem !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 50px !important;
  letter-spacing: 0.5px;
}

.login-btn:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(240, 192, 64, 0.3);
}

.menu-toggle {
  display: none;
}

/* ===== Hero Section ===== */
.hero {
  padding: 0;
  margin-top: 70px;
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-banner {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-banner svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  max-width: 700px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: floatIn 1s ease forwards;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.cta-btn {
  display: inline-block;
  background: var(--primary);
  color: var(--text-dark);
  font-weight: 700;
  padding: 0.9rem 2.5rem;
  border-radius: 50px;
  font-size: 1.1rem;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(240, 192, 64, 0.3);
}

.cta-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(240, 192, 64, 0.4);
  color: var(--text-dark);
}

/* ===== Brand Section ===== */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.brand-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
  text-align: center;
}

.brand-card:hover {
  transform: translateY(-8px);
  background: var(--bg-card-hover);
  border-color: var(--primary);
  box-shadow: 0 12px 40px rgba(240, 192, 64, 0.15);
}

.brand-card svg {
  margin: 0 auto 1rem;
  transition: transform var(--transition);
}

.brand-card:hover svg {
  transform: scale(1.15) rotate(-5deg);
}

.brand-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.brand-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== Products Section ===== */
.products-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0f142e 100%);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.product-card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-card:hover {
  transform: translateY(-8px);
  background: var(--bg-card-hover);
  border-color: var(--primary);
  box-shadow: 0 12px 40px rgba(240, 192, 64, 0.12);
}

.product-card svg {
  margin: 0 auto 1rem;
  transition: transform var(--transition);
}

.product-card:hover svg {
  transform: scale(1.1) rotate(5deg);
}

.product-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.product-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.product-advantages {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
}

.product-advantages h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.product-advantages ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.product-advantages li {
  padding: 0.6rem 1rem;
  background: rgba(240, 192, 64, 0.08);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
  border-left: 3px solid var(--primary);
}

/* ===== Services Section ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.service-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(240, 192, 64, 0.12);
}

.service-card svg {
  margin: 0 auto 1rem;
  transition: transform var(--transition);
}

.service-card:hover svg {
  transform: scale(1.15) rotate(-5deg);
}

.service-card h3 {
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-preview {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
}

.faq-preview h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

/* ===== FAQ Item ===== */
.faq-item {
  border-bottom: 1px solid rgba(240, 192, 64, 0.1);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 600;
  padding: 1rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--transition);
  text-align: left;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question span {
  font-size: 1.4rem;
  transition: transform var(--transition);
  color: var(--primary);
}

.faq-item.active .faq-question span {
  transform: rotate(45deg);
}

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

.faq-answer p {
  padding: 0 0 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

/* ===== News Section ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.news-card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.news-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(240, 192, 64, 0.1);
}

.news-card svg {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform var(--transition);
}

.news-card:hover svg {
  transform: scale(1.05);
}

.news-card h3 {
  font-size: 1.1rem;
  padding: 1rem 1.2rem 0.3rem;
  color: var(--text-light);
}

.news-card time {
  display: block;
  padding: 0 1.2rem;
  font-size: 0.8rem;
  color: var(--primary);
  opacity: 0.8;
}

.news-card p {
  padding: 0.5rem 1.2rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.news-card a {
  display: inline-block;
  margin: 0 1.2rem 1.2rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.news-card a:hover {
  color: #ffd966;
  transform: translateX(4px);
}

/* ===== Cases Section ===== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.case-card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.case-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(240, 192, 64, 0.1);
}

.case-card svg {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--transition);
}

.case-card:hover svg {
  transform: scale(1.03);
}

.case-card h3 {
  padding: 1rem 1.2rem 0.3rem;
  font-size: 1.15rem;
  color: var(--primary);
}

.case-card p {
  padding: 0.3rem 1.2rem 1.2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===== Contact Section ===== */
.contact-section {
  background: linear-gradient(180deg, #0f142e 0%, var(--bg-dark) 100%);
}

.contact-info {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.contact-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-info strong {
  color: var(--primary);
}

.team-intro, .author-info {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-bottom: 1rem;
}

.team-intro h3, .author-info strong {
  color: var(--primary);
}

.team-intro p, .author-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

/* ===== Trust Section ===== */
.partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.partners svg {
  transition: all var(--transition);
  border-radius: var(--radius-sm);
}

.partners svg:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 20px rgba(240, 192, 64, 0.2);
}

.testimonials {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
}

.testimonials h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.testimonials blockquote {
  border-left: 3px solid var(--primary);
  padding: 0.75rem 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.95rem;
}

/* ===== FAQ Full Section ===== */
.faq-list {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 0 2rem;
}

/* ===== HowTo Section ===== */
.howto-content {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
}

.howto-content h3 {
  color: var(--primary);
  margin: 1.5rem 0 0.5rem;
}

.howto-content h3:first-child {
  margin-top: 0;
}

.howto-content p, .howto-content li {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.howto-content ol {
  padding-left: 1.5rem;
}

.howto-content li {
  margin-bottom: 0.3rem;
}

/* ===== Related, Sitemap, Friend Links ===== */
.related-articles, .sitemap, .friend-links {
  padding: 3rem 0;
}

.related-articles ul, .sitemap ul, .friend-links ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.related-articles li a, .sitemap li a, .friend-links li a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all var(--transition);
  padding: 0.2rem 0;
  border-bottom: 1px solid transparent;
}

.related-articles li a:hover, .sitemap li a:hover, .friend-links li a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ===== Footer ===== */
footer {
  background: #060a1a;
  border-top: 1px solid var(--glass-border);
  padding: 3rem 0 1.5rem;
  position: relative;
}

.footer-info {
  text-align: center;
}

.footer-info p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.footer-info a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color var(--transition);
}

.footer-info a:hover {
  color: var(--primary);
}

.footer-info .eeat {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #6a7090;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--text-dark);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(240, 192, 64, 0.3);
  transition: all var(--transition);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(240, 192, 64, 0.4);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
    gap: 0;
  }

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

  .nav-menu li a {
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
  }

  .menu-toggle {
    display: block;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  section {
    padding: 3rem 0;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0.5rem 1rem;
  }

  .nav-actions button:not(.menu-toggle):not(.login-btn) {
    display: none;
  }

  .login-btn {
    font-size: 0.8rem !important;
    padding: 0.4rem 1rem !important;
  }

  .hero {
    min-height: 70vh;
    margin-top: 60px;
  }

  .hero-content {
    padding: 1.5rem;
    margin: 0 1rem;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

  .hero-content p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .cta-btn {
    padding: 0.7rem 2rem;
    font-size: 1rem;
  }

  .brand-grid, .products-grid, .services-grid, .news-grid, .cases-grid {
    grid-template-columns: 1fr;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

  .product-advantages ul {
    grid-template-columns: 1fr;
  }

  .faq-list {
    padding: 0 1rem;
  }

  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .partners {
    gap: 0.75rem;
  }

  .partners svg {
    width: 90px;
    height: 30px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.3rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  .brand-card, .product-card, .service-card, .news-card, .case-card {
    padding: 1.2rem;
  }

  .container {
    padding: 0 1rem;
  }

  section {
    padding: 2rem 0;
  }

  .related-articles ul, .sitemap ul, .friend-links ul {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-card);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ===== Selection ===== */
::selection {
  background: var(--primary);
  color: var(--text-dark);
}