/* wingchun - 仿 kysports-sina.com.cn */
/* Bootstrap 5 + Font Awesome 通过 CDN 加载 */

/* === theme.css === */
:root {
    --color-primary: #4a90e2;
    --color-primary-dark: #003366;
    --color-primary-darker: #001f2e;
    --color-accent: #f1c40f;
    --color-accent-dark: #e6b30c;
    --color-success: #27ae60;
    --color-danger: #c0392b;

    --color-text: #2c3e50;
    --color-text-muted: #7f8c8d;
    --color-text-light: #bdc3c7;
    --color-bg: #ecf0f1;
    --color-bg-soft: #ffffff;
    --color-bg-muted: #f5f6fa;
    --color-border: #dfe6e9;
    --color-border-soft: #f5f6fa;

    --gradient-hero: linear-gradient(135deg, #003366 0%, #4a90e2 100%);
    --gradient-deep: linear-gradient(135deg, #1a2631 0%, #003366 100%);
    --gradient-dept: linear-gradient(135deg, #2d2b5b 0%, #6c5ce7 100%);
    --gradient-security: linear-gradient(135deg, #001f2e, #1a2631);
    --gradient-mission: linear-gradient(135deg, #003366, #2d2b5b);
    --gradient-trust: linear-gradient(135deg, #1a2631, #003366);
    --gradient-cta: linear-gradient(135deg, #003366 0%, #4a90e2 100%);
    --gradient-accent: linear-gradient(135deg, #f1c40f, #e6b30c);
    --gradient-icon: linear-gradient(135deg, #4a90e2, #003366);

    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-blur: blur(8px);

    --shadow-sm: 4px 4px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 4px 4px 0 rgba(0, 0, 0, 0.15);
    --shadow-lg: 4px 4px 0 rgba(0, 0, 0, 0.2);
    --shadow-xl: 4px 4px 0 rgba(0, 0, 0, 0.25);
    --shadow-primary: 4px 4px 0 rgba(74, 144, 226, 0.2);
    --shadow-accent: 4px 4px 0 rgba(241, 196, 15, 0.2);

    --radius-sm: 2px;
    --radius-md: 2px;
    --radius-lg: 4px;
    --radius-pill: 20px;

    --space-xs: 0.4rem;
    --space-sm: 0.8rem;
    --space-md: 1.2rem;
    --space-lg: 2rem;
    --space-xl: 2.4rem;
    --space-2xl: 4rem;

    --transition-fast: 0.15s ease-in-out;
    --transition-base: 0.15s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}
body { font-family: 'Inter', 'PingFang SC', -apple-system, sans-serif !important; }

: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: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.header {
    background: #ecf0f1;
    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.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: #ecf0f1;
    border: 2px solid var(--color-border-soft);
    border-radius: 4px;
    padding: var(--space-md);
    transition: all var(--transition-base);
    height: 100%;
}

.whyus-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-primary);
}

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

.about-img-wrap {
    overflow: hidden;
    border-radius: 4px;
}

.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: 4px;
    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: 4px;
}

.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: 4px;
    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(241, 196, 15, 0.4);
}

.node {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 4px;
    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: #ecf0f1;
    border-radius: 4px;
    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);
}

.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: #ecf0f1;
}

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

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, #ecf0f1 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: 2px solid var(--color-border-soft);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.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: 2px solid var(--color-border-soft);
}

.match-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    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: 4px;
    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: var(--shadow-primary);
}

.testimonials-section {
    background: #ecf0f1;
}

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

.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: var(--shadow-accent);
}

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

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

.footer a {
    transition: color 0.15s ease-in-out;
}

.footer a:hover {
    color: #f6ad55 !important;
}

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

.footer-beian {
    font-size: 0.8rem;
    line-height: 1.8;
    opacity: 0.9;
}

.footer-beian a:hover {
    color: #f6ad55 !important;
    text-decoration: underline !important;
}

.footer-beian img {
    margin-inline-end: 4px;
    transition: transform 0.15s ease-in-out;
}

.footer-beian a:hover img {
    transform: scale(1.1);
}

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

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

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

.form-control:focus,
.form-select:focus {
    border-color: #2b6cb0;
    box-shadow: 0 0 0 0.2rem rgba(66, 153, 225, 0.3);
}

.btn-primary {
    background-color: #2b6cb0;
    border-color: #2b6cb0;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #2c5282;
    border-color: #2c5282;
}

.input-group-text {
    background-color: #edf2f7;
    border-color: #cbd5e1;
}

@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: 24px;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.faq-list {
    max-width: 820px;
    margin: 0 auto;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: center;
}
.hero-split-text { }
.hero-split-img { text-align: center; }

.cta-inner {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.authors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.channels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

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

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.qr-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    justify-items: center;
}

.honor-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.honor-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: center;
}
.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%; }
}
/* === module.css === */
.author-profile {
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
}

.author-profile h1 {
    color: #1e293b;
}

.author-profile img.rounded-circle {
    border: 4px solid #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05), 0 20px 40px -10px rgba(0, 0, 0, 0.12);
}

.author-profile .badge.bg-light {
    background: #e2e8f0 !important;
    color: #1e293b !important;
    transition: all 0.4s ease;
}

.author-profile .badge.bg-light:hover {
    background: #3b82f6 !important;
    color: #ffffff !important;
}

.author-box {
    border-inline-start: 4px solid #3b82f6;
    transition: all 0.4s ease;
}

.author-box:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05), 0 20px 40px -10px rgba(0, 0, 0, 0.12);
}

.author-box img {
    transition: transform 0.4s ease;
}

.author-box:hover img {
    transform: scale(1.05);
}

.author-posts-list .card {
    transition: all 0.4s ease;
    overflow: hidden;
}

.author-posts-list .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05), 0 20px 40px -10px rgba(0, 0, 0, 0.12);
}

.author-posts-list .card-img-top {
    transition: transform 0.4s ease;
}

.author-posts-list .card:hover .card-img-top {
    transform: scale(1.05);
}

.main-authors-section {
    background: #f0f4f8;
}

.author-card {
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.author-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05), 0 20px 40px -10px rgba(0, 0, 0, 0.12);
}

.author-card img.rounded-circle {
    border: 3px solid #e2e8f0;
    transition: border-color 0.4s ease;
}

.author-card:hover img.rounded-circle {
    border-color: #3b82f6;
}

.faq-section {
    background: linear-gradient(180deg, #f0f4f8 0%, #ffffff 100%);
}

.faq-section h2 {
    font-size: 1.75rem;
    color: #1e293b;
}

.faq-list .faq-item {
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    cursor: pointer;
}

.faq-list .faq-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05), 0 20px 40px -10px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-2px);
}

.faq-list .faq-item[open] {
    border-color: rgba(59, 130, 246, 0.2);
    background: linear-gradient(90deg, #e0f7ff 0%, #ffffff 100%);
}

.faq-list .faq-item summary {
    list-style: none;
    cursor: pointer;
    font-size: 1.05rem;
    line-height: 1.6;
    padding-inline-end: 2rem;
    position: relative;
    user-select: none;
}

.faq-list .faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-list .faq-item summary::marker {
    content: '';
}

.faq-list .faq-item summary::after {
    content: '+';
    position: absolute;
    inset-inline-end: 0.25rem;
    inset-block-start: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    color: #3b82f6;
    transition: transform 0.4s ease;
    line-height: 1;
}

.faq-list .faq-item[open] summary::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

.faq-list .faq-q-num {
    font-weight: 700;
    font-size: 0.95rem;
    color: #3b82f6;
}

.faq-list .faq-answer {
    font-size: 0.95rem;
    line-height: 1.8;
    animation: faqFadeIn 0.4s ease;
}

@keyframes faqFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sidebar-widgets .card {
    transition: all 0.4s ease;
}

.sidebar-widgets .card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05), 0 20px 40px -10px rgba(0, 0, 0, 0.12);
}

.sidebar-widgets h5 {
    color: #1e293b;
}

.sidebar-widgets .badge {
    transition: all 0.4s ease;
    cursor: pointer;
}

.sidebar-widgets .badge:hover {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.sidebar-widgets ul li:last-child {
    border-bottom: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.sidebar-widgets ul li a:hover .small {
    color: #3b82f6 !important;
}

.pagination .page-link {
    color: #3b82f6;
    border-color: rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.pagination .page-link:hover {
    background-color: #e2e8f0;
    color: #1e293b;
    border-color: #3b82f6;
}

.pagination .page-item.active .page-link {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

.pagination .page-item.disabled .page-link {
    color: rgba(0, 0, 0, 0.4);
}

.search-box-section {
    background: #f0f4f8;
}

.search-box-section .input-group-lg .form-control {
    border-radius: 12px 0 0 12px;
    padding-inline-start: 1.5rem;
}

.search-box-section .input-group-lg .btn {
    border-radius: 0 12px 12px 0;
}

.search-box-section .badge {
    transition: all 0.4s ease;
}

.search-box-section .badge:hover {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
    border-color: #3b82f6 !important;
}

.search-results-section {
    background: #ffffff;
}

.search-result {
    transition: all 0.4s ease;
}

.search-result:hover {
    transform: translateX(3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05), 0 20px 40px -10px rgba(0, 0, 0, 0.12);
}

.search-result h2 a:hover {
    color: #3b82f6 !important;
}

.search-result mark {
    background-color: #fef08a;
    padding-inline: 2px;
    border-radius: 2px;
    font-weight: 600;
}

.error-page h1 {
    background: linear-gradient(135deg, #3b82f6, #1e293b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    line-height: 1;
    text-shadow: 0 4px 30px rgba(59, 130, 246, 0.2);
}

.recommended-links .badge {
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.recommended-links .badge:hover {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
    border-color: #3b82f6 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05), 0 20px 40px -10px rgba(0, 0, 0, 0.12);
}

.recommended-links .badge:hover .text-warning {
    color: #3b82f6 !important;
}

.legal-article-section,
main:has(> .container > article.bg-white) {
    background: #f0f4f8;
}

article :is(h2.h4) {
    color: #1e293b;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 8px;
    margin-bottom: 16px;
}

article .alert-info {
    background-color: #e0f7ff;
    border-color: #bfdbfe;
    color: #1e293b;
}

article .list-group-item {
    background: transparent;
    transition: all 0.4s ease;
}

article .list-group-item:hover {
    background: #f0f4f8;
    padding-inline-start: 8px;
}

.posts-grid .card {
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.posts-grid .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05), 0 20px 40px -10px rgba(0, 0, 0, 0.12);
    border-color: #3b82f6;
}

.posts-grid .card-img-top {
    transition: transform 0.4s ease;
}

.posts-grid .card:hover .card-img-top {
    transform: scale(1.05);
}

.posts-grid .card-title a {
    transition: color 0.4s ease;
}

.posts-grid .card-title a:hover {
    color: #3b82f6 !important;
}

.related-posts h3 {
    border-bottom: 3px solid #3b82f6;
    padding-bottom: 8px;
    display: inline-block;
}

.related-card {
    transition: all 0.4s ease;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05), 0 20px 40px -10px rgba(0, 0, 0, 0.12);
}

.related-card img {
    transition: transform 0.4s ease;
}

.related-card:hover img {
    transform: scale(1.05);
}

.social-share .btn {
    min-width: 40px;
    transition: all 0.4s ease;
}

.social-share .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05), 0 20px 40px -10px rgba(0, 0, 0, 0.12);
}

.social-share [data-copy-url].copied {
    background-color: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
}

.accordion-button:not(.collapsed) {
    background-color: #e0f7ff;
    color: #1e293b;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
}

.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05), 0 20px 40px -10px rgba(0, 0, 0, 0.12);
}

.tooltip-inner {
    background-color: #1e293b;
    border-radius: 8px;
    font-size: 0.85rem;
}

@media (max-width: 767.98px) {
    .faq-section h2 {
        font-size: 1.4rem;
    }

    .faq-list .faq-item summary {
        font-size: 0.95rem;
        padding-inline-end: 1.5rem;
    }

    .faq-list .faq-answer {
        font-size: 0.88rem;
    }

    .author-profile h1 {
        font-size: 1.5rem;
    }

    .author-profile .col-md-3 img {
        width: 120px !important;
        height: 120px !important;
    }

    .error-page h1 {
        font-size: 5rem !important;
    }

    .search-box-section .input-group-lg .form-control,
    .search-box-section .input-group-lg .btn {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .related-posts .row > [class*="col-"] {
        margin-bottom: 16px;
    }

    .pagination .page-link {
        padding: 0.4rem 0.7rem;
        font-size: 0.9rem;
    }
}
/* === saishi.css === */
.single-post {
    overflow: hidden;
}

.single-post .post-meta {
    font-size: 0.9rem;
}

.single-post .post-meta i {
    color: var(--color-accent);
}

/* Post content typography */
.post-content {
    line-height: 1.8;
    font-size: 1.05rem;
    color: var(--color-dark);
}

.post-content :is(h2, h3, h4) {
    margin-block: 2rem 1rem;
    font-weight: 700;
    color: var(--color-darkest);
    line-height: 1.4;
}

.post-content h2 {
    font-size: 1.75rem;
    padding-bottom: var(--space-xs);
    border-bottom: 2px solid var(--color-border-dark);
}

.post-content h3 {
    font-size: 1.35rem;
}

.post-content :is(p, li) {
    margin-bottom: var(--space-sm);
}

.post-content blockquote {
    border-inline-start: 4px solid var(--color-accent);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-light);
    border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
    margin-block: var(--space-md);
    color: var(--color-dark-muted);
    font-style: italic;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-xs);
    margin-block: var(--space-sm);
    box-shadow: var(--shadow-light);
}

.post-content a {
    color: var(--color-accent);
    text-decoration: underline;
    transition: color var(--transition-medium);
}

.post-content a:hover {
    color: var(--color-accent-dark);
}

.post-content ul,
.post-content ol {
    padding-inline-start: 1.5rem;
}

.post-content code {
    background: var(--color-bg-muted-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--color-warning);
}

.post-content pre {
    background: var(--color-darkest);
    color: #f0f0f0;
    padding: var(--space-md);
    border-radius: var(--radius-xs);
    overflow-x: auto;
    margin-block: var(--space-md);
}

.post-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin-block: var(--space-md);
}

.post-content table th,
.post-content table td {
    padding: var(--space-xs) var(--space-sm);
    border: 1px solid var(--color-border-dark);
    text-align: start;
}

.post-content table th {
    background: var(--color-bg-muted-light);
    font-weight: 600;
}

/* TOC */
.toc-box {
    border-inline-start: 3px solid var(--color-accent);
}

.toc-box ol {
    padding-inline-start: 1.2rem;
}

.toc-box ol li {
    margin: 0.4rem 0;
}

.toc-box ol li a {
    transition: all var(--transition-medium);
}

.toc-box ol li a:hover {
    color: var(--color-accent-dark);
    text-decoration: underline !important;
    padding-inline-start: 4px;
}

/* Tags */
.post-tags .badge {
    background: var(--color-bg-muted-light) !important;
    color: #3b3b3b !important;
    padding: 6px 12px;
    font-weight: 500;
    transition: all var(--transition-medium);
}

.post-tags .badge:hover {
    background: var(--color-accent) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

/* Post nav */
.post-nav {
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.post-nav .btn {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   2. App Hero (AppHeroSection)
   ============================================ */
.app-hero-section {
    background: var(--gradient-hero-new);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.app-hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 0;
}

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

.app-hero-section h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
}

.app-hero-section img {
    transition: transform var(--transition-slow);
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.25));
}

.app-hero-section img:hover {
    transform: translateY(-10px);
}

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

/* ============================================
   3. App QR (AppQrSection)
   ============================================ */
.app-qr-section {
    background: var(--color-bg-light);
}

.qr-card {
    transition: all var(--transition-medium);
    border: 2px solid transparent;
}

.qr-card:hover {
    transform: scale(1.03);
    border-color: var(--color-accent-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.qr-card img {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* ============================================
   4. App Install Steps (AppInstallSection)
   ============================================ */
.app-install-section {
    background: var(--color-bg-light);
}

.app-install-section .badge.rounded-circle {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
}

.app-install-section .bg-white {
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.app-install-section .bg-white:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.app-install-section .bg-white::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-icon-new);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform var(--transition-medium);
}

.app-install-section .bg-white:hover::before {
    transform: scaleY(1);
}

/* ============================================
   5. App Showcase (AppShowcaseSection)
   ============================================ */
.app-showcase-section {
    background: var(--color-bg);
}

.app-showcase-section img {
    transition: transform var(--transition-slow);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.app-showcase-section img:hover {
    transform: translateY(-5px) rotate(-1deg);
}

.app-showcase-section .bg-white {
    transition: all var(--transition-medium);
    border-inline-start: 3px solid transparent;
}

.app-showcase-section .bg-white:hover {
    border-inline-start-color: var(--color-accent);
    transform: translateX(5px);
    box-shadow: var(--shadow-medium);
}

/* ============================================
   6. Contact Sections
   ============================================ */
.contact-channels-section {
    background: var(--color-bg);
}

.contact-channels-section article {
    transition: all var(--transition-medium);
    border: 1px solid var(--color-border-light);
}

.contact-channels-section article:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--color-accent);
}

.contact-channels-section article ul li {
    transition: padding var(--transition-medium);
}

.contact-channels-section article ul li:hover {
    padding-inline-start: 4px;
}

/* Contact Quick */
.contact-quick-section {
    background: var(--color-bg-light);
}

.contact-quick-section .contact-card {
    transition: all var(--transition-medium);
}

.contact-quick-section .contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.contact-quick-section .contact-card i {
    transition: transform var(--transition-medium);
}

.contact-quick-section .contact-card:hover i {
    transform: scale(1.1) rotate(-5deg);
}

/* Contact Form */
.contact-form-section {
    background: var(--color-bg-light);
}

.contact-form-section .form-control,
.contact-form-section .form-select {
    border: 2px solid var(--color-border-dark);
    transition: all var(--transition-medium);
}

.contact-form-section .form-control:focus,
.contact-form-section .form-select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.1);
}

.contact-form-section button[type="submit"] {
    transition: all var(--transition-medium);
}

.contact-form-section button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

/* Contact Commitments */
.contact-commitments-section {
    background: var(--color-bg-light);
}

.contact-commitments-section .bg-white {
    transition: all var(--transition-medium);
    text-align: center;
}

.contact-commitments-section .bg-white:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.contact-commitments-section .bg-white i {
    transition: transform var(--transition-medium);
}

.contact-commitments-section .bg-white:hover i {
    transform: scale(1.15);
}

/* ============================================
   7. Login / Signup Forms
   ============================================ */
main:has(> .container > .bg-white > form) .input-group-text {
    background-color: var(--color-bg-muted-light);
    border-color: var(--color-border-dark);
    border-inline-end: none;
}

main:has(> .container > .bg-white > form) .input-group .form-control {
    border-inline-start: none;
}

main:has(> .container > .bg-white > form) .input-group:focus-within .input-group-text {
    border-color: var(--color-accent);
    background-color: #f0f0f0;
}

main:has(> .container > .bg-white > form) .input-group:focus-within .form-control {
    border-color: var(--color-accent);
}

main:has(> .container > .bg-white > form) .form-check-input:checked {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

main:has(> .container > .bg-white > form) button[type="submit"] {
    transition: all var(--transition-medium);
    font-weight: 600;
}

main:has(> .container > .bg-white > form) button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

/* ============================================
   8. Icons
   ============================================ */
.icon-img {
    max-width: 32px;
    max-height: 32px;
    object-fit: contain;
}

.icon-emoji {
    display: inline-block;
    line-height: 1;
}

/* ============================================
   9. Hero Buttons (đã có ở theme.css nhưng bổ sung thêm)
   ============================================ */
.hero-buttons .btn {
    transition: all var(--transition-medium);
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.hero-buttons .btn-warning {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-darkest);
    font-weight: 600;
}

.hero-buttons .btn-warning:hover {
    background-color: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
}

.hero-buttons .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* ============================================
   10. 自定义滚动条
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-muted-light);
}

::-webkit-scrollbar-thumb {
    background: #7d9fc3;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-dark-muted);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #7d9fc3 var(--color-bg-muted-light);
}

/* ============================================
   11. Print Styles
   ============================================ */
@media print {
    :is(.header,
        .footer,
        .sidebar-widgets,
        .social-share,
        #back-to-top,
        .breadcrumb-nav,
        .notice-bar,
        .cta-banner-section,
        .post-nav,
        .related-posts,
        .author-box,
        .pagination,
        .navbar-toggler,
        .nav-item) {
        display: none !important;
    }

    body {
        background: #fff !important;
        color: #000 !important;
        font-size: 12pt;
    }

    .single-post {
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        max-width: 100% !important;
    }

    .post-content {
        font-size: 11pt;
        line-height: 1.6;
    }

    a {
        text-decoration: underline;
        color: #000 !important;
    }

    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        color: #555;
    }

    a[href^="#"]::after,
    a[href^="javascript:"]::after,
    a[href^="mailto:"]::after,
    a[href^="tel:"]::after {
        content: "";
    }

    .post-content img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }

    :is(h1, h2, h3, h4) {
        page-break-after: avoid;
        color: #000 !important;
    }

    p, li {
        orphans: 3;
        widows: 3;
    }
}

/* ============================================
   12. Animations bổ sung
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* ============================================
   13. Responsive
   ============================================ */
@media (max-width: 991.98px) {
    .post-content {
        font-size: 1rem;
    }

    .post-content h2 {
        font-size: 1.5rem;
    }

    .post-content h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 767.98px) {
    .single-post {
        padding: var(--space-md) !important;
    }

    .post-content {
        font-size: 0.95rem;
    }

    .post-content h2 {
        font-size: 1.35rem;
    }

    .post-nav {
        flex-direction: column;
    }

    .post-nav .btn {
        width: 100%;
    }

    .post-tags .badge {
        font-size: 0.8rem;
        padding: 4px 8px;
    }

    .app-hero-section h1 {
        font-size: 1.75rem;
    }

    .app-install-section .badge.rounded-circle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .toc-box {
        padding: var(--space-sm) !important;
    }

    .qr-card img {
        max-width: 140px !important;
    }
}

@media (max-width: 575.98px) {
    .app-hero-section .row .col-lg-7 {
        text-align: center;
    }

    .app-hero-section .badge.bg-warning {
        font-size: 0.85rem;
        background-color: #ffcc00;
        color: #1a1a1a;
        border: 2px solid #ff9900;
        border-radius: 4px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    }

    .contact-channels-section article,
    .contact-quick-section .contact-card {
        padding: 12px !important;
        background-color: #f0f0f0;
        border: 2px solid #cccccc;
        border-radius: 4px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
        transition: background-color 0.3s ease, border-color 0.3s ease;
    }
}
/* === variant.css === */
:root {
    --color-primary: #4a90e2;
    --color-primary-dark: #3c78b2;
    --color-accent: #f5a623;
    --color-surface: #f2f7fa;
    --color-text: #1d1d1d;
    --rgb-primary: 74,144,226;
    --rgb-accent: 245,166,35;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 28px;
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 6px 12px rgba(0, 0, 0, 0.15), 0 3px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.15), 0 6px 10px rgba(0, 0, 0, 0.05);
    --space-section: 4rem;
    --space-card: 1.5rem;
    --space-gap: 1.5rem;
    --transition: 0.3s ease-in-out;
    --heading-weight: 700;
    --body-line-height: 1.5;
}

body { color: var(--color-text); line-height: var(--body-line-height); }
h1, h2, h3, h4 { font-weight: var(--heading-weight); }
section, .section { padding-top: var(--space-section); padding-bottom: var(--space-section); }
.card, [class*="card"] { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: var(--space-card); transition: var(--transition); }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); }
a:not([class]) { color: var(--color-primary); transition: var(--transition); }

/* ========== Section Layout Variants ========== */

.news-grid { display: flex; flex-direction: column; gap: var(--space-gap); }
.news-grid .card { display: grid; grid-template-columns: 280px 1fr; }

.feature-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-gap); }

.hero-content { text-align: left; max-width: 600px; }

.testimonial-list { display: flex; overflow: hidden; } 
.testimonial-list > * { flex: 0 0 100%; }

.partner-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-gap); align-items: center; }

.faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-gap); }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-gap); text-align: center; }

.cta-inner { background: var(--color-surface); border-radius: var(--radius-xl); padding: 3rem; text-align: center; }

.page-main { max-width: 1200px; margin: 0 auto; }

.hero, [class*="hero"], section:first-of-type { background: linear-gradient(135deg, #4a90e2, #3c78b2); }

@media (max-width: 1024px) {
    .news-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .feature-list { grid-template-columns: repeat(2, 1fr) !important; }
    .partner-grid { grid-template-columns: repeat(3, 1fr) !important; }
    .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .hero-inner { grid-template-columns: 1fr !important; }
}
@media (max-width: 640px) {
    :root { --space-section: 2rem; --space-card: 1rem; --space-gap: 1rem; }
    .news-grid { grid-template-columns: 1fr !important; }
    .feature-list { grid-template-columns: 1fr !important; }
    .faq-list { grid-template-columns: 1fr !important; }
    .testimonial-list { column-count: 1 !important; }
    .partner-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .cta-inner { grid-template-columns: 1fr !important; }
}