:root {
    --color-primary: #7c3aed;
    --color-primary-dark: #4c1d95;
    --color-primary-darker: #2e1065;
    --color-accent: #fbbf24;
    --color-accent-dark: #d97706;
    --color-success: #059669;
    --color-danger: #dc2626;
    --color-text: #1e293b;
    --color-text-muted: #475569;
    --color-text-light: #94a3b8;
    --color-bg: #fefdfb;
    --color-bg-soft: #faf5f0;
    --color-bg-muted: #f1e8df;
    --color-border: #d6cbbf;
    --color-border-soft: #e6ddd5;
    --gradient-hero: linear-gradient(135deg, #2e1065 0%, #7c3aed 100%);
    --gradient-deep: linear-gradient(135deg, #0f172a 0%, #2e1065 100%);
    --gradient-dept: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 100%);
    --gradient-security: linear-gradient(135deg, #0c0a1a, #1e1b4b);
    --gradient-mission: linear-gradient(135deg, #2e1065, #4c1d95);
    --gradient-trust: linear-gradient(135deg, #0c0a1a, #2e1065);
    --gradient-cta: linear-gradient(135deg, #4c1d95 0%, #7c3aed 100%);
    --gradient-accent: linear-gradient(135deg, #fbbf24, #d97706);
    --gradient-icon: linear-gradient(135deg, #7c3aed, #4c1d95);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-blur: blur(12px);
    --shadow-sm: 0 4px 12px rgba(124, 58, 237, 0.08), 0 0 0 1px rgba(124, 58, 237, 0.02);
    --shadow-md: 0 8px 24px rgba(124, 58, 237, 0.15), 0 0 0 1px rgba(124, 58, 237, 0.05);
    --shadow-lg: 0 12px 36px rgba(124, 58, 237, 0.2), 0 0 0 1px rgba(124, 58, 237, 0.08);
    --shadow-xl: 0 16px 48px rgba(124, 58, 237, 0.25), 0 0 0 1px rgba(124, 58, 237, 0.1);
    --shadow-primary: 0 12px 30px rgba(124, 58, 237, 0.2);
    --shadow-accent: 0 10px 25px rgba(251, 191, 36, 0.2), 0 0 20px rgba(251, 191, 36, 0.3);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 40px;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

:where(body) {
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

: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: var(--color-bg);
    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.15);
    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.85;
}

@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: var(--color-bg);
    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: var(--shadow-primary), 0 0 24px rgba(124, 58, 237, 0.2);
}

.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.12);
}

.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.12);
}

.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: var(--color-bg);
    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: var(--shadow-md), 0 0 20px rgba(124, 58, 237, 0.12);
}

.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: var(--color-bg);
}

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

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md), 0 0 20px rgba(124, 58, 237, 0.1);
    background: linear-gradient(135deg, var(--color-bg) 0%, #f4e9fd 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: var(--shadow-lg), 0 0 30px rgba(124, 58, 237, 0.15);
}

.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: var(--shadow-md), 0 0 20px rgba(251, 191, 36, 0.15);
    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.12);
    box-shadow: 0 0 24px rgba(124, 58, 237, 0.2);
}

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

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

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-primary), 0 0 24px rgba(124, 58, 237, 0.15);
}

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

.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: var(--shadow-md), 0 0 20px rgba(251, 191, 36, 0.15);
}

.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.2);
    z-index: 0;
}

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

.cta-banner-section .btn-warning {
    box-shadow: var(--shadow-accent), 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: #6C5CE7;
  --color-accent: #FD79A8;
  --color-bg-muted: #FEF5E7;
  --color-border: #E0D5C1;
  --transition-fast: 0.2s ease;
  --space-xs: 0.5rem;
  --glow-soft: 0 0 24px rgba(108, 92, 231, 0.4);
  --glow-hover: 0 0 32px rgba(108, 92, 231, 0.6);
  --radius-medium: 12px;
}

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

.footer a:hover {
  color: var(--color-accent) !important;
  text-shadow: 0 0 12px rgba(253, 121, 168, 0.5);
}

.footer-copyright {
  font-size: 0.85rem;
}

.footer-beian {
  font-size: 0.8rem;
  line-height: 1.8;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.footer-beian a:hover {
  color: var(--color-accent) !important;
  text-decoration: underline !important;
  text-shadow: 0 0 12px rgba(253, 121, 168, 0.4);
}

.footer-beian img {
  margin-inline-end: 4px;
  transition: transform var(--transition-fast), filter var(--transition-fast);
  filter: drop-shadow(0 0 6px rgba(108, 92, 231, 0.3));
  border-radius: 4px;
}

.footer-beian a:hover img {
  transform: scale(1.2);
  filter: drop-shadow(0 0 12px rgba(108, 92, 231, 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-primary);
  box-shadow: 0 0 0 0.2rem rgba(108, 92, 231, 0.25), var(--glow-soft);
  border-radius: var(--radius-medium);
}

.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  border-radius: var(--radius-medium);
  box-shadow: 0 4px 14px rgba(108, 92, 231, 0.35);
  transition: all var(--transition-fast);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #5A4BD1;
  border-color: #5A4BD1;
  box-shadow: var(--glow-hover), 0 4px 20px rgba(108, 92, 231, 0.4);
  transform: translateY(-2px);
}

.input-group-text {
  background-color: var(--color-bg-muted);
  border-color: var(--color-border);
  border-radius: var(--radius-medium) 0 0 var(--radius-medium);
}

@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: #FDFBF7;
  border-radius: var(--radius-medium);
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  background: #2D2D2D;
  border-radius: var(--radius-medium);
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: #fff;
}

.testimonial-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  background: #FFFFFF;
  border-radius: var(--radius-medium);
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(0, 0, 0, 0.05);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: center;
  background: #FDFBF7;
  border-radius: var(--radius-medium);
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
  background: #2D2D2D;
  border-radius: var(--radius-medium);
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: #fff;
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  background: #FFFFFF;
  border-radius: var(--radius-medium);
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(135deg, #FDFBF7 0%, #FFFFFF 100%);
  border-radius: var(--radius-medium);
  padding: 3rem 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  background: #FDFBF7;
  border-radius: var(--radius-medium);
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.hero-split-text {
  /* unchanged */
}

.hero-split-img {
  text-align: center;
  filter: drop-shadow(0 4px 20px rgba(108, 92, 231, 0.2));
}

.cta-inner {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(135deg, #6C5CE7 0%, #FD79A8 100%);
  border-radius: var(--radius-medium);
  padding: 3rem 2rem;
  color: #fff;
  box-shadow: 0 8px 30px rgba(108, 92, 231, 0.3);
}

.authors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  background: #FFFFFF;
  border-radius: var(--radius-medium);
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.channels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  background: #FDFBF7;
  border-radius: var(--radius-medium);
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.post-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  background: #2D2D2D;
  border-radius: var(--radius-medium);
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: #fff;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  background: #FFFFFF;
  border-radius: var(--radius-medium);
  padding: 1.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.matches-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  background: #FDFBF7;
  border-radius: var(--radius-medium);
  padding: 1.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  background: #2D2D2D;
  border-radius: var(--radius-medium);
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: #fff;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  justify-items: center;
  background: #FFFFFF;
  border-radius: var(--radius-medium);
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

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

.honor-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  background: #FDFBF7;
  border-radius: var(--radius-medium);
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.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%;
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 24px rgba(108, 92, 231, 0.4);
  }
  50% {
    box-shadow: 0 0 32px rgba(108, 92, 231, 0.6);
  }
}

.btn-primary {
  animation: pulse-glow 2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary {
    animation: none;
  }
}