* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #FFA500;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --border-color: #E0E0E0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

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

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 60px 0;
    text-align: center;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bg-white);
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.header-main {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e3a8a;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu li a:hover {
    color: var(--primary-color);
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-menu li a:hover::after {
    width: 100%;
}

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 20px;
    text-align: center;
    color: white;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.95;
}

.slider-section {
    position: relative;
    width: 100%;
    padding: 40px 20px;
    background: var(--bg-light);
}

.slider-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 450px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 0 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.slide:nth-child(1) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.slide:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.slide:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.slide:nth-child(4) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-bg {
    position: relative;
    width: 45%;
    height: 90%;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    background: white;
    padding: 15px;
}

.slide-overlay {
    display: none;
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: left;
    color: white;
    width: 50%;
    padding: 0;
    animation: slideContentFadeIn 1s ease-out;
}

@keyframes slideContentFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.slide-title i {
    margin-right: 15px;
    color: #FFD700;
}

.slide-desc {
    font-size: 1.1rem;
    margin-bottom: 25px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
}

.btn-slide {
    padding: 14px 40px;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid white;
    border-radius: 50px;
    background: white;
    color: #667eea;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-slide:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid white;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 3;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: white;
    transform: scale(1.3);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-title i {
    margin-right: 12px;
    color: var(--primary-color);
}

.promo-section .section-title i {
    color: white;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.promo-section .section-desc {
    color: rgba(255, 255, 255, 0.9);
}

.btn-primary,
.btn-secondary,
.btn-accent {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #E55A8C;
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #3A7BC8;
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-accent {
    background: white;
    color: var(--primary-color);
}

.btn-accent:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.featured-works-section {
    padding: 80px 20px;
    background: var(--bg-white);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.featured-card {
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.featured-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.featured-card:hover .featured-download {
    opacity: 1;
    transform: translateY(0);
}

.featured-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.featured-info {
    padding: 20px;
}

.featured-info h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.featured-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.featured-download {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
    padding: 8px 12px;
    background: rgba(30, 58, 138, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(30, 58, 138, 0.2);
}

.featured-download i {
    font-size: 0.8rem;
}

.categories-section {
    padding: 80px 20px;
    background: var(--bg-light);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.category-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: 2px solid var(--border-color);
    cursor: pointer;
    position: relative;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.category-card:hover .category-download {
    opacity: 1;
    transform: translateY(0);
}

.category-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.category-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.category-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.category-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
    padding: 10px 16px;
    background: rgba(30, 58, 138, 0.1);
    border-radius: 25px;
    border: 1px solid rgba(30, 58, 138, 0.2);
    margin: 0 auto;
    width: fit-content;
}

.category-download i {
    font-size: 0.8rem;
}

.membership-section {
    padding: 80px 20px;
    background: var(--bg-light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.benefit-card {
    background: var(--bg-white);
    padding: 35px 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon i {
    font-size: 2rem;
    color: white;
}

.benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.benefit-card p {
    color: var(--text-light);
    line-height: 1.6;
}

.community-section {
    padding: 80px 20px;
    background: var(--bg-white);
    text-align: center;
}

.community-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-item {
    padding: 30px 20px;
}

.feature-item i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-item p {
    color: var(--text-light);
}

.faq-section {
    padding: 80px 20px;
    background: var(--bg-light);
}

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

.faq-item {
    background: var(--bg-white);
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-icon {
    color: var(--primary-color);
    transition: var(--transition);
    font-size: 1.2rem;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

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

.faq-answer p {
    padding: 0 30px 25px 60px;
    color: var(--text-light);
    line-height: 1.8;
}

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

.footer-main {
    background: #2C3E50;
    color: white;
    padding: 60px 20px 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.footer-logo span {
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 30px;
}

.footer-links-section h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
}


.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.6);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top:hover {
    background: #E55A8C;
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.back-to-top.show {
    display: flex;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 75px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 75px);
        background: var(--bg-white);
        flex-direction: column;
        padding: 30px 20px;
        gap: 0;
        transition: var(--transition);
        box-shadow: var(--shadow);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu li a {
        display: block;
        padding: 15px 0;
        width: 100%;
    }

    .hero-section {
        padding: 40px 0;
    }

    .main-title {
        font-size: 1.8rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .slider-container {
        height: 500px;
        border-radius: 10px;
    }

    .slide {
        flex-direction: column;
        padding: 30px 20px;
        gap: 20px;
    }

    .slide-bg {
        width: 100%;
        height: 45%;
    }

    .slide-content {
        width: 100%;
        text-align: center;
    }

    .slide-title {
        font-size: 1.5rem;
    }

    .slide-desc {
        font-size: 0.95rem;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .slider-btn.prev {
        left: 10px;
    }

    .slider-btn.next {
        right: 10px;
    }

    .slider-dots {
        bottom: 15px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-desc {
        font-size: 1rem;
    }

    .featured-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .community-features {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Managed download confirmation: the source anchor remains usable without JS. */
.managed-download-overlay[hidden]{display:none}
.managed-download-overlay{position:fixed;inset:0;z-index:20000;background:rgba(0,0,0,.65);display:grid;place-items:center;padding:20px}
.managed-download-dialog{width:min(100%,460px);border-radius:16px;background:#fff;color:#243044;padding:28px;box-shadow:0 18px 60px rgba(0,0,0,.3)}
.managed-download-dialog h2{font-size:1.4rem;margin:0 0 16px}
.managed-download-dialog p{margin:0 0 24px;line-height:1.7}
.managed-download-actions{display:flex;justify-content:flex-end;gap:12px}
.managed-download-actions button{border:0;border-radius:8px;padding:10px 18px;cursor:pointer;background:#eceef3;color:#243044}
.managed-download-actions button:last-child{background:#5865f2;color:#fff}
.managed-download-dialog :focus-visible,a[data-download-btn="download"]:focus-visible{outline:3px solid #f59e0b;outline-offset:3px}

.whitehat-news,.whitehat-friends{padding:55px 20px;text-align:center}
.whitehat-news-grid,.whitehat-friend-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px;margin:25px auto}
.whitehat-news-card,.whitehat-friend-link{background:#fff;border:1px solid var(--border-color);border-radius:14px;padding:24px;box-shadow:var(--shadow)}
.whitehat-news-card{text-align:left;line-height:1.8}
.whitehat-news-card h3{margin:0 0 12px}.whitehat-news-card p{margin:8px 0}
.whitehat-article{padding:50px 20px;max-width:920px;margin:auto;line-height:1.9}
.whitehat-article h1{font-size:clamp(1.6rem,4vw,2.5rem);line-height:1.35}
.whitehat-article-body{overflow-wrap:anywhere;white-space:pre-wrap;line-height:1.9;margin:25px 0}
.whitehat-article-body p{font-size:1.05rem;line-height:1.9}
.whitehat-article-body h2,.whitehat-article-body h3{margin:1.5rem 0}
.whitehat-article-body ul,.whitehat-article-body ol{padding-left:2rem}
@media(max-width:600px){.whitehat-news,.whitehat-friends,.whitehat-article{padding:28px 16px}}

/* Managed download confirmation: the source anchor remains usable without JS. */
.managed-download-overlay[hidden]{display:none}
.managed-download-overlay{position:fixed;inset:0;z-index:20000;background:rgba(0,0,0,.65);display:grid;place-items:center;padding:20px}
.managed-download-dialog{width:min(100%,460px);border-radius:16px;background:#fff;color:#243044;padding:28px;box-shadow:0 18px 60px rgba(0,0,0,.3)}
.managed-download-dialog h2{font-size:1.4rem;margin:0 0 16px}
.managed-download-dialog p{margin:0 0 24px;line-height:1.7}
.managed-download-actions{display:flex;justify-content:flex-end;gap:12px}
.managed-download-actions button{border:0;border-radius:8px;padding:10px 18px;cursor:pointer;background:#eceef3;color:#243044}
.managed-download-actions button:last-child{background:#5865f2;color:#fff}
.managed-download-dialog :focus-visible,a[data-download-btn="download"]:focus-visible{outline:3px solid #f59e0b;outline-offset:3px}

.whitehat-news,.whitehat-friends{padding:55px 20px;text-align:center}
.whitehat-news-grid,.whitehat-friend-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px;margin:25px auto}
.whitehat-news-card,.whitehat-friend-link{background:#fff;border:1px solid var(--border-color);border-radius:14px;padding:24px;box-shadow:var(--shadow)}
.whitehat-news-card{text-align:left;line-height:1.8}
.whitehat-news-card h3{margin:0 0 12px}.whitehat-news-card p{margin:8px 0}
.whitehat-article{padding:50px 20px;max-width:920px;margin:auto;line-height:1.9}
.whitehat-article h1{font-size:clamp(1.6rem,4vw,2.5rem);line-height:1.35}
.whitehat-article-body{overflow-wrap:anywhere;white-space:pre-wrap;line-height:1.9;margin:25px 0}
.whitehat-article-body p{font-size:1.05rem;line-height:1.9}
.whitehat-article-body h2,.whitehat-article-body h3{margin:1.5rem 0}
.whitehat-article-body ul,.whitehat-article-body ol{padding-left:2rem}
@media(max-width:600px){.whitehat-news,.whitehat-friends,.whitehat-article{padding:28px 16px}}

/* Managed download confirmation: the source anchor remains usable without JS. */
.managed-download-overlay[hidden]{display:none}
.managed-download-overlay{position:fixed;inset:0;z-index:20000;background:rgba(0,0,0,.65);display:grid;place-items:center;padding:20px}
.managed-download-dialog{width:min(100%,460px);border-radius:16px;background:#fff;color:#243044;padding:28px;box-shadow:0 18px 60px rgba(0,0,0,.3)}
.managed-download-dialog h2{font-size:1.4rem;margin:0 0 16px}
.managed-download-dialog p{margin:0 0 24px;line-height:1.7}
.managed-download-actions{display:flex;justify-content:flex-end;gap:12px}
.managed-download-actions button{border:0;border-radius:8px;padding:10px 18px;cursor:pointer;background:#eceef3;color:#243044}
.managed-download-actions button:last-child{background:#5865f2;color:#fff}
.managed-download-dialog :focus-visible,a[data-download-btn="download"]:focus-visible{outline:3px solid #f59e0b;outline-offset:3px}

.whitehat-news,.whitehat-friends{padding:55px 20px;text-align:center}
.whitehat-news-grid,.whitehat-friend-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px;margin:25px auto}
.whitehat-news-card,.whitehat-friend-link{background:#fff;border:1px solid var(--border-color);border-radius:14px;padding:24px;box-shadow:var(--shadow)}
.whitehat-news-card{text-align:left;line-height:1.8}
.whitehat-news-card h3{margin:0 0 12px}.whitehat-news-card p{margin:8px 0}
.category-card,.featured-card{display:block}
.whitehat-article{padding:50px 20px;max-width:920px;margin:auto;line-height:1.9}
.whitehat-article h1{font-size:clamp(1.6rem,4vw,2.5rem);line-height:1.35}
.whitehat-article-body{overflow-wrap:anywhere;white-space:pre-wrap;line-height:1.9;margin:25px 0}
.whitehat-article-body p{font-size:1.05rem;line-height:1.9}
.whitehat-article-body h2,.whitehat-article-body h3{margin:1.5rem 0}
.whitehat-article-body ul,.whitehat-article-body ol{padding-left:2rem}
@media(max-width:600px){.whitehat-news,.whitehat-friends,.whitehat-article{padding:28px 16px}}

/* Managed download confirmation: the source anchor remains usable without JS. */
.managed-download-overlay[hidden]{display:none}
.managed-download-overlay{position:fixed;inset:0;z-index:20000;background:rgba(0,0,0,.65);display:grid;place-items:center;padding:20px}
.managed-download-dialog{width:min(100%,460px);border-radius:16px;background:#fff;color:#243044;padding:28px;box-shadow:0 18px 60px rgba(0,0,0,.3)}
.managed-download-dialog h2{font-size:1.4rem;margin:0 0 16px}
.managed-download-dialog p{margin:0 0 24px;line-height:1.7}
.managed-download-actions{display:flex;justify-content:flex-end;gap:12px}
.managed-download-actions button{border:0;border-radius:8px;padding:10px 18px;cursor:pointer;background:#eceef3;color:#243044}
.managed-download-actions button:last-child{background:#5865f2;color:#fff}
.managed-download-dialog :focus-visible,a[data-download-btn="download"]:focus-visible{outline:3px solid #f59e0b;outline-offset:3px}

.whitehat-news,.whitehat-friends{padding:55px 20px;text-align:center}
.whitehat-news-grid,.whitehat-friend-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px;margin:25px auto}
.whitehat-news-card,.whitehat-friend-link{background:#fff;border:1px solid var(--border-color);border-radius:14px;padding:24px;box-shadow:var(--shadow)}
.whitehat-news-card{text-align:left;line-height:1.8}
.whitehat-news-card h3{margin:0 0 12px}.whitehat-news-card p{margin:8px 0}
.category-card,.featured-card{display:block}
.whitehat-article{padding:50px 20px;max-width:920px;margin:auto;line-height:1.9}
.whitehat-article h1{font-size:clamp(1.6rem,4vw,2.5rem);line-height:1.35}
.whitehat-article-body{overflow-wrap:anywhere;white-space:pre-wrap;line-height:1.9;margin:25px 0}
.whitehat-article-body p{font-size:1.05rem;line-height:1.9}
.whitehat-article-body h2,.whitehat-article-body h3{margin:1.5rem 0}
.whitehat-article-body ul,.whitehat-article-body ol{padding-left:2rem}
@media(max-width:600px){.whitehat-news,.whitehat-friends,.whitehat-article{padding:28px 16px}}

/* Managed download confirmation: the source anchor remains usable without JS. */
.managed-download-overlay[hidden]{display:none}
.managed-download-overlay{position:fixed;inset:0;z-index:20000;background:rgba(0,0,0,.65);display:grid;place-items:center;padding:20px}
.managed-download-dialog{width:min(100%,460px);border-radius:16px;background:#fff;color:#243044;padding:28px;box-shadow:0 18px 60px rgba(0,0,0,.3)}
.managed-download-dialog h2{font-size:1.4rem;margin:0 0 16px}
.managed-download-dialog p{margin:0 0 24px;line-height:1.7}
.managed-download-actions{display:flex;justify-content:flex-end;gap:12px}
.managed-download-actions button{border:0;border-radius:8px;padding:10px 18px;cursor:pointer;background:#eceef3;color:#243044}
.managed-download-actions button:last-child{background:#5865f2;color:#fff}
.managed-download-dialog :focus-visible,a[data-download-btn="download"]:focus-visible{outline:3px solid #f59e0b;outline-offset:3px}

.whitehat-news,.whitehat-friends{padding:55px 20px;text-align:center}
.whitehat-news-grid,.whitehat-friend-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px;margin:25px auto}
.whitehat-news-card,.whitehat-friend-link{background:#fff;border:1px solid var(--border-color);border-radius:14px;padding:24px;box-shadow:var(--shadow)}
.whitehat-news-card{text-align:left;line-height:1.8}
.whitehat-news-card h3{margin:0 0 12px}.whitehat-news-card p{margin:8px 0}
.category-card,.featured-card{display:block}
.whitehat-article{padding:50px 20px;max-width:920px;margin:auto;line-height:1.9}
.whitehat-article h1{font-size:clamp(1.6rem,4vw,2.5rem);line-height:1.35}
.whitehat-article-body{overflow-wrap:anywhere;white-space:pre-wrap;line-height:1.9;margin:25px 0}
.whitehat-article-body p{font-size:1.05rem;line-height:1.9}
.whitehat-article-body h2,.whitehat-article-body h3{margin:1.5rem 0}
.whitehat-article-body ul,.whitehat-article-body ol{padding-left:2rem}
@media(max-width:600px){.whitehat-news,.whitehat-friends,.whitehat-article{padding:28px 16px}}
