/*
Theme Name: HQK Neon Elementor
Theme URI: https://example.com/
Author: HQK
Description: 为 Elementor 与数字授权网站设计的轻量科技风 WordPress 主题。支持全宽页面、透明页头、响应式导航、WooCommerce 和 Elementor Theme Builder。
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: hqk-neon
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-logo, custom-menu, featured-images, full-width-template, translation-ready, block-styles, wide-blocks
*/

:root {
    --hqk-accent: #7c5cff;
    --hqk-accent-2: #25d9ff;
    --hqk-bg: #050610;
    --hqk-panel: rgba(16, 18, 35, .78);
    --hqk-border: rgba(255, 255, 255, .12);
    --hqk-text: #f6f7ff;
    --hqk-muted: #9aa1be;
    --hqk-radius: 18px;
    --hqk-content-width: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--hqk-text);
    background:
        radial-gradient(circle at 12% 10%, rgba(124, 92, 255, .16), transparent 30%),
        radial-gradient(circle at 88% 8%, rgba(37, 217, 255, .10), transparent 28%),
        var(--hqk-bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

body.admin-bar .site-header {
    top: 32px;
}

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

a {
    color: var(--hqk-accent-2);
    text-decoration: none;
}

a:hover {
    color: #fff;
}

button,
input,
select,
textarea {
    font: inherit;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.skip-link:focus {
    position: fixed;
    z-index: 99999;
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
    padding: 10px 14px;
    clip: auto;
    border-radius: 8px;
    background: #fff;
    color: #000;
}

.site-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: rgba(5, 6, 16, .72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.site-header__inner,
.site-footer__inner,
.site-main:not(.elementor-page .site-main),
.content-shell {
    width: min(var(--hqk-content-width), calc(100% - 32px));
    margin-inline: auto;
}

.site-header__inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-branding {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-logo {
    display: block;
    max-height: 44px;
    width: auto;
}

.site-title {
    color: #fff;
    font-size: 18px;
    font-weight: 850;
    letter-spacing: -.02em;
}

.site-title:hover {
    color: #fff;
}

.site-navigation {
    margin-left: auto;
}

.site-navigation ul {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-navigation a {
    color: #cbd0e7;
    font-size: 14px;
    font-weight: 650;
}

.site-navigation a:hover,
.site-navigation .current-menu-item > a {
    color: #fff;
}

.header-cta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--hqk-accent), var(--hqk-accent-2));
    box-shadow: 0 10px 28px rgba(93, 124, 255, .24);
    font-size: 13px;
    font-weight: 800;
}

.header-cta:hover {
    color: #fff;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    padding: 0;
    border: 1px solid var(--hqk-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, .04);
    color: #fff;
    cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 2px;
    background: currentColor;
    content: "";
}

.site-main {
    min-height: 60vh;
}

.site-main:not(.elementor-page .site-main) {
    padding-block: 70px;
}

.page-header,
.entry-header {
    margin-bottom: 30px;
}

.entry-title {
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.08;
    letter-spacing: -.04em;
}

.entry-content {
    color: #bec4dc;
}

.entry-content > * {
    max-width: 820px;
}

.entry-content > .alignwide {
    max-width: var(--hqk-content-width);
}

.entry-content > .alignfull {
    max-width: none;
    margin-inline: calc(50% - 50vw);
    width: 100vw;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: #fff;
}

.entry-content blockquote {
    margin: 24px 0;
    padding: 18px 22px;
    border-left: 3px solid var(--hqk-accent);
    border-radius: 0 14px 14px 0;
    background: rgba(255,255,255,.035);
}

.post-card {
    margin-bottom: 18px;
    padding: 26px;
    border: 1px solid var(--hqk-border);
    border-radius: var(--hqk-radius);
    background: rgba(255, 255, 255, .035);
}

.post-card h2 {
    margin-top: 0;
}

.pagination {
    margin-top: 36px;
}

.site-footer {
    border-top: 1px solid rgba(255,255,255,.08);
    background: rgba(0,0,0,.18);
}

.site-footer__inner {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #7f86a4;
    font-size: 13px;
}

.footer-menu ul {
    display: flex;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-menu a {
    color: #969dbb;
}

.hqk-empty-home {
    min-height: 72vh;
    display: grid;
    place-items: center;
    padding: 90px 20px;
    text-align: center;
}

.hqk-empty-home__panel {
    max-width: 760px;
    padding: 44px;
    border: 1px solid var(--hqk-border);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(124,92,255,.12), rgba(255,255,255,.025));
    box-shadow: 0 30px 90px rgba(0,0,0,.35);
}

.hqk-empty-home h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(40px, 7vw, 72px);
    line-height: 1.02;
    letter-spacing: -.05em;
}

.hqk-empty-home p {
    margin: 18px 0 0;
    color: var(--hqk-muted);
}

.hqk-empty-home a {
    display: inline-flex;
    margin-top: 26px;
    padding: 12px 18px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--hqk-accent), var(--hqk-accent-2));
    font-weight: 800;
}

/* Elementor compatibility */
.elementor-page .site-main {
    width: 100%;
    max-width: none;
    padding: 0;
}

.elementor-template-full-width .site-main,
.page-template-hqk-full-width .site-main {
    width: 100%;
    max-width: none;
    padding: 0;
}

.page-template-hqk-canvas .site-header,
.page-template-hqk-canvas .site-footer {
    display: none;
}

.page-template-hqk-canvas .site-main {
    width: 100%;
    max-width: none;
    padding: 0;
}

.elementor-section.elementor-section-boxed > .elementor-container,
.e-con.e-con-boxed > .e-con-inner {
    max-width: var(--hqk-content-width);
}

.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button {
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--hqk-accent), var(--hqk-accent-2));
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

@media (max-width: 860px) {
    .menu-toggle {
        display: block;
    }

    .site-navigation {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;
        display: none;
        padding: 14px 16px 20px;
        border-bottom: 1px solid var(--hqk-border);
        background: rgba(5, 6, 16, .96);
    }

    .site-navigation.is-open {
        display: block;
    }

    .site-navigation ul {
        align-items: stretch;
        flex-direction: column;
        gap: 4px;
    }

    .site-navigation a {
        display: block;
        padding: 11px 10px;
        border-radius: 9px;
    }

    .site-navigation a:hover {
        background: rgba(255,255,255,.04);
    }

    .header-cta {
        display: none;
    }

    .site-footer__inner {
        align-items: flex-start;
        flex-direction: column;
        padding-block: 26px;
    }
}

@media (max-width: 640px) {
    .site-header__inner,
    .site-footer__inner,
    .site-main:not(.elementor-page .site-main),
    .content-shell {
        width: min(var(--hqk-content-width), calc(100% - 22px));
    }
}
