/*
Theme Name: HTY Gold - 好体育金牌
Theme URI: https://hty.gold/
Author: HaoTiYu
Author URI: https://hty.gold/
Description: 好体育官网WordPress主题 - 好体育官网入口。体育赛事AI数据分析与智能预测平台。好体育直播数据同步，好体育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-gold
Tags: sports, dark, luxury, one-column, two-columns, custom-menu, featured-images, translation-ready
*/

:root {
    --bg: #0c0a08;
    --surface: #161210;
    --surface2: #1e1a16;
    --gold: #d4a843;
    --gold2: #f0d078;
    --goldDark: #8b6914;
    --text: #e8e0d4;
    --text2: #9a8e80;
    --border: #2e261e; --glow-rgb: 212,168,67;--glow-rgb:212,168,67;
    --red: #c0392b;
    --max-width: 1200px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Noto Serif SC', 'Playfair Display', Georgia, serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.85;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold2); }
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 {
    clip: rect(1px,1px,1px,1px); position: absolute !important;
    height: 1px; width: 1px; overflow: hidden;
}

/* Header */
.site-header {
    background: linear-gradient(180deg, var(--surface) 0%, rgba(12,10,8,.95) 100%);
    border-bottom: 1px solid var(--gold);
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: blur(12px);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px; max-width: var(--max-width); margin: 0 auto;
}
.site-logo {
    font-family: 'Playfair Display', serif;
    font-size: 30px; font-weight: 800; color: var(--gold);
}
.site-logo sub { font-size: 11px; color: var(--text2); font-weight: 400; letter-spacing: 2px; vertical-align: baseline; }
.site-logo a { color: inherit; }
.site-logo a:hover { color: inherit; }

.main-nav { display: flex; gap: 28px; align-items: center; }
.main-nav ul { display: flex; gap: 28px; align-items: center; list-style: none; }
.main-nav a {
    color: var(--text2); font-size: 13px; font-weight: 600;
    letter-spacing: 1.5px; text-transform: uppercase; transition: all .3s;
}
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--gold); }

.btn-register {
    background: linear-gradient(135deg, var(--gold), var(--goldDark));
    color: #000 !important; padding: 9px 22px; border-radius: 2px;
    font-weight: 700; font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
    transition: all .3s; display: inline-block; border-bottom: none !important;
}
.btn-register:hover {
    background: linear-gradient(135deg, var(--gold2), var(--gold));
    transform: translateY(-1px); box-shadow: 0 4px 20px rgba(212,168,67,.3);
    color: #000 !important;
}

/* Hero */
.hero-section {
    padding: 70px 0; text-align: center;
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
    position: relative; overflow: hidden;
}
.hero-section::after {
    content: ''; position: absolute; top: 50%; left: 50%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(212,168,67,.06) 0%, transparent 70%);
    transform: translate(-50%,-50%); border-radius: 50%;
}
.hero-section h1 {
    font-family: 'Playfair Display', serif;
    font-size: 44px; font-weight: 800; color: var(--gold);
    line-height: 1.3; margin-bottom: 18px; position: relative; z-index: 1;
}
.hero-section p {
    font-size: 16px; color: var(--text2); max-width: 650px;
    margin: 0 auto; line-height: 1.9; position: relative; z-index: 1;
}
.hero-divider {
    width: 80px; height: 2px; background: var(--gold);
    margin: 24px auto; opacity: .6;
}

/* Layout */
.content-grid {
    display: grid; grid-template-columns: 1fr 340px;
    gap: 40px; padding: 40px 0;
}

/* Articles */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 26px; color: var(--gold);
    margin-bottom: 20px; padding-bottom: 10px;
    border-bottom: 1px solid var(--border); display: inline-block;
}
.article-card {
    background: var(--surface); border: 1px solid var(--border);
    margin-bottom: 24px; padding: 28px; position: relative;
    transition: all .3s; overflow: hidden;
}
.article-card::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 2px; background: var(--gold); transition: width .4s;
}
.article-card:hover::after { width: 100%; }
.article-card:hover { border-color: var(--goldDark); }
.article-card .tag {
    font-size: 11px; color: var(--gold); text-transform: uppercase;
    letter-spacing: 2px; font-weight: 700; margin-bottom: 8px;
    display: inline-block; border: 1px solid var(--goldDark); padding: 2px 10px;
}
.article-card h2, .article-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 21px; color: #fff; margin: 10px 0; 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(--gold); }
.article-card .entry-meta {
    font-size: 12px; color: var(--text2); margin-bottom: 14px; letter-spacing: .5px;
}
.article-card .entry-summary, .article-card p {
    font-size: 15px; color: var(--text2); line-height: 1.85;
}
.post-thumbnail { margin-bottom: 16px; overflow: hidden; }
.post-thumbnail img { width: 100%; transition: transform .3s; }
.article-card:hover .post-thumbnail img { transform: scale(1.02); }

/* Single Post */
.single-post-content {
    background: var(--surface); border: 1px solid var(--border);
    padding: 36px; margin-bottom: 30px;
}
.single-post-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 32px; color: var(--gold); 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 p { margin-bottom: 18px; }
.single-post-content .entry-content h2, .single-post-content .entry-content h3 {
    color: var(--gold); margin: 24px 0 12px; font-family: 'Playfair Display', serif;
}

/* Sidebar */
.sidebar .widget {
    background: var(--surface); border: 1px solid var(--border);
    padding: 22px; margin-bottom: 20px;
}
.sidebar .widget-title {
    font-family: 'Playfair Display', serif;
    font-size: 18px; color: var(--gold);
    margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.sidebar .widget ul { list-style: none; }
.sidebar .widget li {
    padding: 9px 0; border-bottom: 1px solid rgba(46,38,30,.5);
    font-size: 14px; display: flex; justify-content: space-between; align-items: center;
}
.sidebar .widget li:last-child { border: none; }
.sidebar .widget li a { color: var(--text); }
.sidebar .widget li a:hover { color: var(--gold); }
.sidebar .widget .num { color: var(--gold); font-weight: 700; font-size: 13px; }

/* Featured */
.featured-section { background: var(--surface); padding: 50px 0; }
.featured-section .section-title-center {
    text-align: center; font-family: 'Playfair Display', serif;
    font-size: 30px; color: var(--gold); margin-bottom: 36px;
}
.featured-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.featured-card {
    background: var(--surface2); border: 1px solid var(--border);
    padding: 26px; text-align: center; transition: all .3s;
}
.featured-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.featured-card .icon { font-size: 36px; margin-bottom: 10px; }
.featured-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 17px; color: #fff; margin-bottom: 8px;
}
.featured-card p { font-size: 13px; color: var(--text2); line-height: 1.75; }

/* 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);
    color: var(--text); font-size: 14px; transition: all .2s;
}
.pagination a:hover, .pagination .current {
    background: var(--gold); color: #000; border-color: var(--gold);
}

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

/* Footer */
.site-footer {
    background: var(--surface); border-top: 1px solid var(--gold);
    padding: 40px 0 20px; margin-top: 40px;
}
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3,1fr); gap: 30px; margin-bottom: 30px; }
.footer-brand p { font-size: 13px; color: var(--text2); line-height: 1.7; margin-top: 10px; }
.footer-col h4 {
    font-family: 'Playfair Display', serif;
    font-size: 15px; color: var(--gold); margin-bottom: 12px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 7px; }
.footer-col a { color: var(--text2); font-size: 13px; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
    text-align: center; padding-top: 20px; border-top: 1px solid var(--border);
    font-size: 11px; color: var(--text2);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--surface) 0%, #1a1208 100%);
    padding: 40px 0; border-bottom: 1px solid var(--border);
}
.page-header h1 { font-family: 'Playfair Display', serif; font-size: 36px; color: var(--gold); }

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

/* 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;
}

@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) {
    .header-inner { flex-wrap: wrap; gap: 10px; }
    .main-nav ul { flex-wrap: wrap; gap: 12px; }
    .hero-section h1 { font-size: 28px; }
    .featured-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .single-post-content { padding: 20px; }
}

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.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(--gold,#d4a843); border-radius: 2px; transition: all .3s; }
.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); }

/* Glow animation */
.btn-glow { animation: glowPulse 2s ease-in-out infinite; 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(var(--glow-rgb,0,230,118),.3); }
    50% { box-shadow: 0 0 20px rgba(var(--glow-rgb,0,230,118),.6), 0 0 40px rgba(var(--glow-rgb,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(var(--glow-rgb,0,230,118),.5); }
.btn-glow:hover::after { animation: none; opacity: 0; }

/* Mobile Drawer (JS-created) */
.mobile-drawer { position: fixed; top: 0; right: 0; width: 280px; height: 100vh; background: var(--surface,#161210); border-left: 1px solid var(--border,#2e261e); 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,#999); 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 { 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,#2e261e); }
.drawer-nav a { display: block; padding: 14px 8px; color: var(--text,#e0e0e0); font-size: 15px; font-weight: 500; transition: all .2s; }
.drawer-nav a:hover { padding-left: 16px; }
.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; }

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .main-nav { display: none !important; }
    .header-actions .btn-register { padding: 8px 18px; font-size: 13px; border-radius: 4px; }
}
