/*
Theme Name: HTY Locker - 好体育更衣室
Theme URI: https://hty.locker/
Author: HaoTiYu
Author URI: https://hty.locker/
Description: 好体育官网WordPress主题 - 好体育官网入口。全球体育赛事深度战术分析与独家更衣室报道。好体育直播赛事数据同步，好体育app内容互通。针对Google March 2026 Core Update和Bing搜索引擎优化。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hty-locker
Tags: sports, dark, one-column, two-columns, custom-menu, featured-images, translation-ready
*/

/* ===== CSS Variables ===== */
:root {
    --bg: #0a0f0d;
    --surface: #131a16;
    --surface2: #1a2420;
    --accent: #00e676;
    --accent2: #69f0ae;
    --text: #e0e0e0;
    --text2: #9e9e9e;
    --border: #2a3a32;
    --danger: #ff5252;
    --max-width: 1200px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Noto Sans SC', 'Oswald', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent2); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ===== Screen Reader Text ===== */
.screen-reader-text {
    clip: rect(1px,1px,1px,1px);
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

/* ===== Header ===== */
.site-header {
    background: var(--surface);
    border-bottom: 2px solid var(--accent);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    max-width: var(--max-width);
    margin: 0 auto;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.site-logo {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
}
.site-logo span { color: var(--accent); }
.site-logo a { color: inherit; }
.site-logo a:hover { color: inherit; }

/* ===== Navigation ===== */
.main-nav { display: flex; align-items: center; }
.main-nav ul, .main-nav .menu { display: flex; gap: 6px; align-items: center; list-style: none; margin: 0; padding: 0; }
.main-nav li { list-style: none; }
.main-nav a {
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 8px 14px;
    border-radius: 4px;
    transition: all .3s;
    white-space: nowrap;
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
    color: var(--accent);
    background: rgba(0,230,118,.08);
}

/* Header Actions (register + hamburger) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Hamburger Toggle - HIDDEN on desktop */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}
.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: all .3s ease;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Register Button with Glow */
.btn-register {
    background: var(--accent);
    color: #000 !important;
    padding: 9px 22px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all .3s;
    display: inline-block;
    white-space: nowrap;
    text-align: center;
    flex-shrink: 0;
}
.btn-register:hover {
    background: var(--accent2);
    color: #000 !important;
    transform: translateY(-1px);
}
/* Glow pulse animation */
.btn-glow {
    animation: glowPulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(0,230,118,.4);
    position: relative;
    overflow: hidden;
}
.btn-glow::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
    animation: textShimmer 2.5s ease-in-out infinite;
}
@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(0,230,118,.3); }
    50% { box-shadow: 0 0 20px rgba(0,230,118,.6), 0 0 40px rgba(0,230,118,.2); }
}
@keyframes textShimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}
.btn-glow:hover {
    animation: none;
    box-shadow: 0 0 24px rgba(0,230,118,.5);
}
.btn-glow:hover::after { animation: none; opacity: 0; }

/* Drawer close button */
.drawer-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text2);
    font-size: 20px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all .2s;
}
.drawer-close:hover { color: var(--accent); background: rgba(255,255,255,.05); }

/* Drawer register */
.drawer-reg {
    display: block;
    margin-top: 24px;
    text-align: center;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 15px;
    width: 100%;
}

/* Mobile Drawer (JS-created) */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--surface);
    border-left: 1px solid var(--border);
    z-index: 1000;
    overflow-y: auto;
    padding: 24px;
    box-shadow: -4px 0 24px rgba(0,0,0,.5);
    transform: translateX(100%);
    transition: transform .3s ease;
}
.mobile-drawer.open { transform: translateX(0); }
.drawer-close {
    position: absolute; top: 16px; right: 16px;
    background: none; border: none; color: var(--text2);
    font-size: 22px; cursor: pointer; width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: all .2s;
}
.drawer-close:hover { color: var(--accent); background: rgba(255,255,255,.06); }
.drawer-nav { padding-top: 40px; }
.drawer-nav ul, .drawer-nav .menu { list-style: none; margin: 0; padding: 0; }
.drawer-nav li { border-bottom: 1px solid var(--border); }
.drawer-nav a {
    display: block; padding: 14px 8px; color: var(--text);
    font-size: 15px; font-weight: 500; transition: all .2s;
}
.drawer-nav a:hover { color: var(--accent); padding-left: 16px; }
.drawer-nav .current-menu-item > a { color: var(--accent); }
.drawer-reg {
    display: block; margin-top: 24px; text-align: center;
    padding: 14px 24px; border-radius: 8px; font-size: 15px; width: 100%;
}
.drawer-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,.5); z-index: 999;
    opacity: 0; visibility: hidden; transition: all .3s;
}
.drawer-overlay.open { opacity: 1; visibility: visible; }

/* ===== Hero ===== */
.hero-section {
    background: linear-gradient(135deg, var(--surface) 0%, #0d1f15 50%, var(--surface) 100%);
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0,230,118,.08) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-section h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}
.hero-section h1 span { color: var(--accent); }
.hero-section p {
    font-size: 17px;
    color: var(--text2);
    max-width: 600px;
    line-height: 1.9;
    position: relative;
    z-index: 1;
}

/* ===== Content Grid ===== */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    padding: 40px 0;
}

/* ===== Section Titles ===== */
.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 26px;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

/* ===== Article Cards ===== */
.article-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
    transition: all .3s;
    position: relative;
    overflow: hidden;
}
.article-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 3px;
    height: 100%;
    background: var(--accent);
    opacity: 0;
    transition: opacity .3s;
}
.article-card:hover {
    border-color: var(--accent);
    transform: translateX(4px);
}
.article-card:hover::before { opacity: 1; }
.article-card h2, .article-card h3 {
    font-size: 19px;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.4;
}
.article-card h2 a, .article-card h3 a { color: #fff; }
.article-card h2 a:hover, .article-card h3 a:hover { color: var(--accent); }
.article-card .entry-meta {
    font-size: 12px;
    color: var(--text2);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.article-card .entry-meta a { color: var(--text2); }
.article-card .entry-summary,
.article-card .entry-content {
    color: var(--text2);
    font-size: 15px;
    line-height: 1.8;
}
.article-card .tag {
    display: inline-block;
    background: rgba(0,230,118,.1);
    color: var(--accent);
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 6px;
    text-transform: uppercase;
}

/* ===== Featured Image ===== */
.post-thumbnail {
    margin-bottom: 16px;
    border-radius: 6px;
    overflow: hidden;
}
.post-thumbnail img {
    width: 100%;
    height: auto;
    transition: transform .3s;
}
.article-card:hover .post-thumbnail img {
    transform: scale(1.02);
}

/* ===== Sidebar ===== */
.sidebar .widget {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}
.sidebar .widget-title {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    color: #fff;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.sidebar .widget ul { list-style: none; }
.sidebar .widget li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.sidebar .widget li:last-child { border: none; }
.sidebar .widget li a { color: var(--text); }
.sidebar .widget li a:hover { color: var(--accent); }

/* ===== Single Post ===== */
.single-post-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 36px;
    margin-bottom: 30px;
}
.single-post-content h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    color: #fff;
    margin-bottom: 14px;
    line-height: 1.3;
}
.single-post-content .entry-content {
    font-size: 16px;
    line-height: 2;
    color: var(--text);
}
.single-post-content .entry-content h2,
.single-post-content .entry-content h3 {
    color: #fff;
    margin: 24px 0 12px;
    font-family: 'Oswald', sans-serif;
}
.single-post-content .entry-content p {
    margin-bottom: 18px;
}

/* ===== Featured Section ===== */
.featured-section {
    background: var(--surface);
    padding: 40px 0;
}
.featured-section .section-title-center {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
}
.featured-section .section-title-center span { color: var(--accent); }
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.featured-card {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    transition: all .3s;
}
.featured-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}
.featured-card .icon { font-size: 32px; margin-bottom: 12px; }
.featured-card h4 { font-size: 17px; color: #fff; margin-bottom: 8px; }
.featured-card p { font-size: 14px; color: var(--text2); line-height: 1.7; }

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 30px 0;
}
.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    font-size: 14px;
    transition: all .2s;
}
.pagination a:hover, .pagination .current {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

/* ===== Comments ===== */
.comments-area {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 30px;
    margin-top: 20px;
}
.comments-area h2 {
    font-family: 'Oswald', sans-serif;
    color: #fff;
    margin-bottom: 20px;
}
.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    margin-bottom: 12px;
}
.comment-form input[type="submit"] {
    width: auto;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    cursor: pointer;
    border: none;
    padding: 10px 24px;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--surface);
    border-top: 2px solid var(--accent);
    padding: 40px 0 20px;
    margin-top: 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}
.footer-col h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    color: #fff;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text2); font-size: 13px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text2);
}

/* ===== Bottom Ad ===== */
#hty-bottom-ad {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9998;
    text-align: center;
    pointer-events: none;
}
#hty-bottom-ad a {
    pointer-events: auto;
    display: inline-block;
}
#hty-bottom-ad img {
    max-width: 728px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
#hty-ad-toggle {
    position: fixed;
    z-index: 9999;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    font-size: 11px;
    color: var(--text2);
    background: rgba(0,0,0,.7);
    padding: 2px 12px;
    border-radius: 3px 3px 0 0;
    border: none;
    pointer-events: auto;
}

/* ===== Page Templates ===== */
.page-header {
    background: linear-gradient(135deg, var(--surface) 0%, #0d1f15 100%);
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
}
.page-header h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 36px;
    color: #fff;
}

/* ===== 404 ===== */
.error-404 {
    text-align: center;
    padding: 80px 20px;
}
.error-404 h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 72px;
    color: var(--accent);
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .content-grid { grid-template-columns: 1fr; }
    .featured-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .menu-toggle { display: flex !important; }
    .main-nav { display: none !important; }
    .header-inner { flex-wrap: nowrap; }
    .hero-section h1 { font-size: 26px; }
    .hero-section p { font-size: 15px; }
    .featured-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    #hty-bottom-ad img { max-width: 100%; }
    .single-post-content { padding: 20px; }
    .section-title { font-size: 22px; }
    /* Mobile register button - prominent, next to hamburger */
    .header-actions { gap: 10px; }
    .header-actions .btn-register {
        padding: 8px 18px;
        font-size: 13px;
        border-radius: 4px;
        letter-spacing: 0;
    }
}
