:root {
    --color-primary: #8B5CF6;
    --color-primary-dark: #4C1D95;
    --color-primary-darker: #2D1060;
    --color-accent: #FBBF24;
    --color-accent-dark: #F59E0B;
    --color-success: #10B981;
    --color-danger: #EF4444;
    --color-text: #1F2937;
    --color-text-muted: #6B7280;
    --color-text-light: #9CA3AF;
    --color-bg: #FFFFFF;
    --color-bg-soft: #F3F4F6;
    --color-bg-muted: #E5E7EB;
    --color-border: #D1D5DB;
    --color-border-soft: #E5E7EB;
    --gradient-hero: linear-gradient(135deg, #6D28D9 0%, #8B5CF6 100%);
    --gradient-deep: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%);
    --gradient-dept: linear-gradient(135deg, #4338CA 0%, #6366F1 100%);
    --gradient-security: linear-gradient(135deg, #111827, #1F2937);
    --gradient-mission: linear-gradient(135deg, #1E3A8A, #312E81);
    --gradient-trust: linear-gradient(135deg, #0F172A, #1E3A8A);
    --gradient-cta: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%);
    --gradient-accent: linear-gradient(135deg, #FBBF24, #F59E0B);
    --gradient-icon: linear-gradient(135deg, #8B5CF6, #6D28D9);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-blur: blur(12px);
    --shadow-sm: 0 0 12px rgba(139, 92, 246, 0.2);
    --shadow-md: 0 0 20px rgba(139, 92, 246, 0.3);
    --shadow-lg: 0 0 30px rgba(139, 92, 246, 0.4);
    --shadow-xl: 0 0 40px rgba(139, 92, 246, 0.5);
    --shadow-primary: 0 0 24px rgba(139, 92, 246, 0.4);
    --shadow-accent: 0 0 24px rgba(251, 191, 36, 0.4);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 30px;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;
    --transition-fast: 0.2s ease-in-out;
    --transition-base: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

:where(body) {
    color: var(--color-text);
    background: var(--color-bg);
}

:where(img) {
    max-width: 100%;
    height: auto;
}

.bg-glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
}

.icon-circle {
    width: 60px;
    height: 60px;
    background: var(--gradient-icon);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.header {
    background: #fff;
    z-index: 1030;
}

.header .navbar-brand img {
    transition: transform var(--transition-fast);
}

.header .navbar-brand:hover img {
    transform: scale(1.05);
}

.header .nav-link {
    font-weight: 500;
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.header .nav-link:hover {
    color: var(--color-primary);
}

.hero-section {
    min-height: 480px;
    background: var(--gradient-hero);
    color: #fff;
    padding-block: var(--space-2xl);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 0;
    pointer-events: none;
}

.hero-section > .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    line-height: 1.2;
}

.hero-section h2 {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    opacity: 0.9;
    margin-bottom: var(--space-md);
    font-weight: 500;
}

.hero-section .lead {
    font-size: 1.1rem;
    max-width: 700px;
    margin-inline: auto;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-block-start: var(--space-md);
}

.notice-bar {
    animation: noticeSlideIn 0.5s ease-out;
}

.notice-bar a {
    transition: opacity var(--transition-fast);
}

.notice-bar a:hover {
    opacity: 0.8;
}

@keyframes noticeSlideIn {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.breadcrumb-nav {
    background: var(--color-bg-muted);
}

.breadcrumb-nav .breadcrumb-item a {
    transition: color var(--transition-fast);
}

.breadcrumb-nav .breadcrumb-item a:hover {
    color: var(--color-primary-dark) !important;
}

.why-us-section {
    background: var(--color-bg-soft);
}

.whyus-card {
    background: #fff;
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    transition: all var(--transition-base);
    height: 100%;
}

.whyus-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 32px rgba(139, 92, 246, 0.6);
}

.about-section {
    background: var(--gradient-deep);
    color: #fff;
}

.about-img-wrap {
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.about-img-wrap img {
    transition: transform var(--transition-slow);
}

.about-img-wrap:hover img {
    transform: scale(1.05);
}

.about-card {
    transition: all var(--transition-base);
}

.about-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

.departments-section {
    background: var(--gradient-dept);
    color: #fff;
}

.departments-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.departments-subtitle {
    font-size: 1.05rem;
    max-width: 800px;
    margin-inline: auto;
    color: rgba(255, 255, 255, 0.85);
}

.departments-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-block-start: var(--space-lg);
}

@media (min-width: 768px) {
    .departments-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.d-item {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
}

.d-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: var(--space-xs);
}

.d-num span {
    color: #fff;
    font-size: 1.1rem;
    margin-inline-start: var(--space-xs);
}

.d-image {
    margin-bottom: var(--space-sm);
}

.d-image img {
    width: 100%;
    border-radius: var(--radius-md);
}

.security-section {
    background: var(--gradient-security);
    color: #fff;
}

.security-network {
    position: relative;
    max-width: 800px;
    margin: var(--space-xl) auto;
    min-height: 400px;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .security-network {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, auto);
    }

    .core-node        { grid-column: 2; grid-row: 2; }
    .node-top-left    { grid-column: 1; grid-row: 1; }
    .node-top-right   { grid-column: 3; grid-row: 1; }
    .node-bottom-left { grid-column: 1; grid-row: 3; }
    .node-bottom-right{ grid-column: 3; grid-row: 3; }
}

.core-node {
    background: var(--gradient-accent);
    border-radius: 50%;
    width: 140px;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-inline: auto;
    color: var(--color-primary-darker);
    font-weight: 700;
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.5), 0 0 60px rgba(251, 191, 36, 0.2);
}

.node {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    text-align: center;
    color: #fff;
    transition: all var(--transition-base);
}

.node:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.15);
}

.node-title {
    font-weight: 600;
    color: var(--color-accent);
    margin-block: var(--space-xs);
}

@media (max-width: 767.98px) {
    .core-node { width: 120px; height: 120px; }
}

.honor-section {
    background: var(--color-bg-soft);
}

.honor-row {
    padding-block: var(--space-sm);
}

.honor-text-card {
    padding: var(--space-md);
    background: #fff;
    border-radius: var(--radius-md);
    border-inline-start: 4px solid var(--color-primary);
    transition: all var(--transition-base);
}

.honor-text-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.mission-section {
    background: var(--gradient-mission);
    padding-block: var(--space-2xl);
    color: #fff;
}

.mission-list li {
    margin-bottom: var(--space-sm);
    color: #e2e8f0;
}

.stats-section {
    background: #fff;
}

.stats-card {
    transition: all var(--transition-base);
    background: var(--color-bg-soft);
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    background: linear-gradient(135deg, #fff 0%, #f0f7ff 100%);
}

.stats-card h3 {
    font-variant-numeric: tabular-nums;
    color: var(--color-primary-darker);
}

.news-section {
    background: var(--color-bg-soft);
}

.news-card {
    transition: all var(--transition-base);
    border: 1px solid var(--color-border-soft);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 32px rgba(139, 92, 246, 0.4);
}

.news-img-wrap {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.news-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.news-card:hover .news-img-wrap img {
    transform: scale(1.08);
}

.matches-section {
    background: var(--color-bg-soft);
}

.match-card {
    transition: all var(--transition-base);
    border: 1px solid var(--color-border-soft);
}

.match-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    border-color: var(--color-primary);
}

.match-card .team {
    min-width: 0;
}

.match-card .team .small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-card .score {
    font-variant-numeric: tabular-nums;
    color: var(--color-primary-darker);
}

.trust-section {
    background: var(--gradient-trust);
    color: #fff;
}

.trust-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-md);
    padding: var(--space-lg) var(--space-sm);
    height: 100%;
    transition: all var(--transition-base);
}

.trust-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
}

.partners-section {
    background: var(--color-bg-soft);
}

.partner-card {
    transition: all var(--transition-base);
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 24px rgba(139, 92, 246, 0.4);
}

.testimonials-section {
    background: #fff;
}

.testimonial-card {
    transition: all var(--transition-base);
    border-block-start: 4px solid transparent;
}

.testimonial-card:hover {
    border-block-start-color: var(--color-accent);
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.cta-banner-section {
    background: var(--gradient-cta);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cta-banner-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 0;
}

.cta-banner-section > .container {
    position: relative;
    z-index: 1;
}

.cta-banner-section .btn-warning {
    box-shadow: 0 0 24px rgba(251, 191, 36, 0.4);
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.85) !important;
}

.footer {
    font-size: 0.9rem;
    color: #cbd5e1;
}

:root {
  --color-primary: #7C3AED;
  --color-accent: #F43F5E;
  --color-bg-dark: #0B0F19;
  --color-bg-muted: #1E293B;
  --color-border: #334155;
  --color-text: #F8FAFC;
  --color-text-muted: #94A3B8;
  --shadow-glow: 0 0 24px rgba(124, 58, 237, 0.4);
  --shadow-glow-hover: 0 0 32px rgba(244, 63, 94, 0.6);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition-speed: 0.3s;
  --pulse-duration: 3s;
}

.footer a {
  transition: color var(--transition-speed) ease, text-shadow var(--transition-speed) ease;
}

.footer a:hover {
  color: var(--color-accent) !important;
  text-shadow: var(--shadow-glow);
}

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

.footer-beian {
  font-size: 0.8rem;
  line-height: 1.8;
  opacity: 0.9;
  color: var(--color-text-muted);
}

.footer-beian a:hover {
  color: var(--color-accent) !important;
  text-decoration: underline !important;
  text-shadow: 0 0 12px rgba(244, 63, 94, 0.3);
}

.footer-beian img {
  margin-inline-end: 4px;
  transition: transform var(--transition-speed) ease, filter var(--transition-speed) ease;
  filter: drop-shadow(0 0 4px rgba(124, 58, 237, 0.3));
}

.footer-beian a:hover img {
  transform: scale(1.2) rotate(3deg);
  filter: drop-shadow(0 0 12px rgba(244, 63, 94, 0.6));
}

.footer-beian li {
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .footer-beian ul {
    flex-direction: column;
    gap: var(--space-xs) !important;
  }

  .footer-beian li {
    white-space: normal;
    text-align: center;
  }
}

.form-control:focus,
.form-select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 0.2rem rgba(244, 63, 94, 0.25), var(--shadow-glow);
  outline: none;
}

.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-accent);
  color: var(--color-text);
  border-radius: var(--radius-md);
  transition: all var(--transition-speed) ease;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #6D28D9;
  border-color: #E11D48;
  box-shadow: 0 6px 24px rgba(244, 63, 94, 0.5), var(--shadow-glow-hover);
  transform: translateY(-2px);
}

.input-group-text {
  background-color: #1E293B;
  border-color: #334155;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  background: linear-gradient(135deg, #0B0F19 0%, #1A1F36 100%);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(124, 58, 237, 0.1), 0 8px 32px rgba(0, 0, 0, 0.6);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  background: #13172B;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(244, 63, 94, 0.08), 0 8px 28px rgba(0, 0, 0, 0.5);
}

.testimonial-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  background: #0E1224;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.2);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: center;
  background: #111827;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.15);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
  background: linear-gradient(145deg, #0F172A, #1E293B);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px rgba(244, 63, 94, 0.1), 0 8px 32px rgba(0, 0, 0, 0.4);
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  background: #0B0F19;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.1), 0 8px 32px rgba(0, 0, 0, 0.5);
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  background: #0E1224;
  padding: 2rem;
  border-radius: var(--radius-lg);
}

.hero-split-text {
  background: rgba(124, 58, 237, 0.08);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  backdrop-filter: blur(4px);
}

.hero-split-img {
  text-align: center;
}

.cta-inner {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.4);
  color: #F8FAFC;
}

.authors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  background: #111827;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 0 0 1px rgba(244, 63, 94, 0.1);
}

.channels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  background: #13172B;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.12);
}

.post-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  background: #0B0F19;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  background: #0E1224;
  padding: 1rem;
  border-radius: var(--radius-md);
  box-shadow: 0 0 0 1px rgba(244, 63, 94, 0.08);
}

.matches-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  background: #111827;
  padding: 1rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(124, 58, 237, 0.1);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  background: #13172B;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(244, 63, 94, 0.1), 0 8px 24px rgba(0, 0, 0, 0.4);
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  justify-items: center;
  background: #0B0F19;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.15);
}

.honor-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.honor-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  background: #0E1224;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(244, 63, 94, 0.1);
}

.honor-row-reverse {
  direction: rtl;
}

.honor-row-reverse > * {
  direction: ltr;
}

@media (max-width: 1024px) {
  .news-grid,
  .feature-list,
  .channels-grid,
  .testimonial-list { grid-template-columns: repeat(2, 1fr); }

  .partner-grid,
  .stats-grid,
  .authors-grid { grid-template-columns: repeat(2, 1fr); }

  .matches-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }

  .hero-split { grid-template-columns: 1fr; }
  .honor-row { grid-template-columns: 1fr; }
  .honor-row-reverse { direction: ltr; }
}

@media (max-width: 640px) {
  .news-grid,
  .feature-list,
  .testimonial-list,
  .channels-grid,
  .post-list-grid,
  .related-grid,
  .authors-grid,
  .matches-grid { grid-template-columns: 1fr; }

  .partner-grid,
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .steps-grid { grid-template-columns: 1fr; }
  .qr-grid { grid-template-columns: 1fr; max-width: 300px; margin: 0 auto; }

  .faq-list { max-width: 100%; }
}

.btn-primary {
  animation: glow-pulse var(--pulse-duration) ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35); }
  50% { box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35), 0 0 40px rgba(124, 58, 237, 0.5); }
}