/* ===================================
   黑客世界杯足球风格 - Hacker World Cup Style
   Matrix Green + Gold + Dark Theme
   =================================== */

/* === 基础变量和重置 === */
:root {
    --hacker-green: #00ff41;
    --hacker-green-dark: #00cc33;
    --hacker-green-glow: rgba(0, 255, 65, 0.5);
    --world-cup-gold: #ffd700;
    --world-cup-gold-dark: #ccac00;
    --dark-bg: #0a0a0a;
    --dark-bg-secondary: #121212;
    --dark-bg-card: #1a1a1a;
    --dark-border: #2a2a2a;
    --text-primary: #e0e0e0;
    --text-secondary: #888;
    --danger-red: #ff3333;
    --live-red: #ff0040;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Matrix雨背景效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(180deg, transparent 0%, rgba(0, 255, 65, 0.02) 50%, transparent 100%),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 255, 65, 0.03) 2px, rgba(0, 255, 65, 0.03) 4px);
    pointer-events: none;
    z-index: -1;
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% { background-position: 0 0; }
    100% { background-position: 0 100vh; }
}

/* 扫描线效果 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--hacker-green), transparent);
    animation: scan 3s linear infinite;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.5;
}

@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

a {
    color: var(--hacker-green);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--world-cup-gold);
    text-shadow: 0 0 10px var(--world-cup-gold);
}

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

/* === 容器布局 === */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    padding: 0 15px;
}

.col-12 { width: 100%; }
.col-md-3 { width: 25%; }
.col-md-4 { width: 33.333%; }
.col-md-5 { width: 41.666%; }
.col-md-6 { width: 50%; }
.col-md-8 { width: 66.666%; }
.col-md-9 { width: 75%; }

.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

/* === 头部导航 === */
#header, .site-header {
    background: linear-gradient(180deg, var(--dark-bg-secondary) 0%, var(--dark-bg) 100%);
    border-bottom: 2px solid var(--hacker-green);
    box-shadow: 0 0 20px var(--hacker-green-glow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

#header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 10px 15px;
}

.site-brand {
    display: flex;
    align-items: center;
}

.site-brand a {
    display: flex;
    align-items: center;
}

.site-brand img {
    height: 50px;
    filter: brightness(1.2) drop-shadow(0 0 10px var(--hacker-green));
}

.site-title, .site-description {
    position: absolute;
    clip: rect(1px, 1px, 1px, 1px);
}

/* 主导航 */
.site-nav {
    flex-grow: 1;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
    justify-content: center;
}

#main-menu li a {
    padding: 10px 15px;
    font-size: 1rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: all 0.3s ease;
}

#main-menu li a::before {
    content: '>';
    margin-right: 5px;
    color: var(--hacker-green);
    opacity: 0;
    transition: all 0.3s ease;
}

#main-menu li a:hover::before {
    opacity: 1;
}

#main-menu li a:hover {
    color: var(--hacker-green);
    text-shadow: 0 0 10px var(--hacker-green-glow);
}

.nav-link {
    display: block;
    padding: 8px 15px;
}

/* 二级导航 */
.topnav, .navs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 0;
    border-top: 1px solid var(--dark-border);
    gap: 5px;
}

.topnav li, .navs li {
    display: inline;
}

.topnav a, .navs a {
    display: inline-block;
    padding: 5px 12px;
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--dark-bg-card);
    border: 1px solid var(--dark-border);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.topnav a:hover, .navs a:hover {
    background: var(--hacker-green);
    color: var(--dark-bg);
    border-color: var(--hacker-green);
    box-shadow: 0 0 15px var(--hacker-green-glow);
}

/* === 主体内容区 === */
#body, .site-body {
    padding: 20px 0;
    min-height: calc(100vh - 200px);
}

.home-widgets {
    margin-bottom: 20px;
}

/* === Widget组件 === */
.widget {
    background: var(--dark-bg-card);
    border: 1px solid var(--dark-border);
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--hacker-green), var(--world-cup-gold), var(--hacker-green));
    animation: borderGlow 3s linear infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--dark-border);
}

.widget-title {
    font-size: 1.2rem;
    color: var(--hacker-green);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-left: 15px;
}

.widget-title::before {
    content: '[';
    position: absolute;
    left: 0;
    color: var(--world-cup-gold);
}

.widget-title::after {
    content: ']';
    color: var(--world-cup-gold);
    margin-left: 5px;
}

.more-link {
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
}

.more-link:hover {
    color: var(--hacker-green);
}

/* 热门赛事Widget */
.widget-featured-comps {
    background: var(--dark-bg-card);
}

.widget-featured-comps .widget-title {
    color: var(--world-cup-gold);
}

.widget-featured-comps ul {
    list-style: none;
    padding: 0;
}

.widget-featured-comps ul li {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed var(--dark-border);
    transition: all 0.3s ease;
}

.widget-featured-comps ul li:last-child {
    border-bottom: none;
}

.widget-featured-comps ul li:hover {
    background: rgba(0, 255, 65, 0.1);
    padding-left: 10px;
}

.widget-featured-comps ul li .logo {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.widget-featured-comps ul li .logo img {
    max-width: 100%;
    max-height: 100%;
    filter: brightness(1.1);
}

.widget-featured-comps ul li .info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget-featured-comps ul li a.name {
    font-weight: bold;
    color: var(--text-primary);
    font-size: 14px;
}

.widget-featured-comps ul li a.name:hover {
    color: var(--hacker-green);
}

.widget-featured-comps ul li .links {
    font-size: 12px;
}

.widget-featured-comps ul li .links a {
    color: var(--hacker-green);
    padding: 2px 8px;
    border: 1px solid var(--hacker-green);
    border-radius: 3px;
    margin-left: 5px;
}

.widget-featured-comps ul li .links a:hover {
    background: var(--hacker-green);
    color: var(--dark-bg);
}

/* 新闻Widget */
.widget-news .widget-title {
    color: var(--hacker-green);
}

/* Tab导航 */
.cat-nav, .nav[role="tablist"] {
    display: flex;
    border-bottom: 1px solid var(--dark-border);
    margin-bottom: 15px;
}

.cat-nav .nav-item, .nav-item {
    margin-right: 5px;
}

.cat-nav .nav-link {
    padding: 8px 15px;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid transparent;
    border-bottom: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cat-nav .nav-item.active .nav-link,
.cat-nav .nav-link:hover {
    color: var(--hacker-green);
    border-color: var(--dark-border);
    border-bottom-color: var(--dark-bg-card);
    background: var(--dark-bg-card);
}

.tab-content {
    padding: 10px 0;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* 列表样式 */
.item-list, .simple-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.item-list .item, .simple-list li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--dark-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-list .item:last-child {
    border-bottom: none;
}

.item-list .entry-title, .simple-list .entry-title {
    flex: 1;
    margin: 0;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.5;
}

.item-list .entry-title a {
    color: var(--text-primary);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-list .entry-title a:hover {
    color: var(--hacker-green);
}

.item-list .entry-title a::before {
    content: '//';
    color: var(--hacker-green);
    margin-right: 8px;
    font-size: 12px;
}

.item-list .date, .simple-list .date {
    color: var(--text-secondary);
    font-size: 12px;
    margin-left: 15px;
    font-family: 'Consolas', monospace;
}

/* === 比赛列表 === */
.match-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.match-list > li {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: var(--dark-bg-card);
    border: 1px solid var(--dark-border);
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.match-list > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--hacker-green);
}

.match-list > li:hover {
    border-color: var(--hacker-green);
    box-shadow: 0 0 20px var(--hacker-green-glow);
    transform: translateX(5px);
}

.match-list .meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    padding-right: 15px;
    border-right: 1px solid var(--dark-border);
}

.match-list .meta .datetime {
    font-size: 14px;
    color: var(--hacker-green);
    font-family: 'Consolas', monospace;
}

.match-list .meta .category {
    font-size: 12px;
    color: var(--world-cup-gold);
    margin-top: 5px;
    padding: 2px 8px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 3px;
}

.match-list .teams {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.match-list .team {
    display: flex;
    align-items: center;
    flex: 1;
}

.match-list .team-home {
    justify-content: flex-end;
    text-align: right;
}

.match-list .team-away {
    justify-content: flex-start;
}

.match-list .team-logo {
    width: 40px;
    height: 40px;
    margin: 0 10px;
}

.match-list .team-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.match-list .team-name {
    font-size: 14px;
    color: var(--text-primary);
}

.match-list .score {
    font-size: 24px;
    font-weight: bold;
    color: var(--hacker-green);
    padding: 0 15px;
    font-family: 'Consolas', monospace;
    text-shadow: 0 0 10px var(--hacker-green-glow);
}

.match-list .vs {
    font-size: 16px;
    color: var(--text-secondary);
    padding: 0 10px;
}

.match-list .actions {
    display: flex;
    gap: 10px;
}

.live-btn, .btn-live {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--live-red), #cc0033);
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0%, 100% { box-shadow: 0 0 5px var(--live-red); }
    50% { box-shadow: 0 0 20px var(--live-red); }
}

.live-btn:hover, .btn-live:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #ff0040, #ff3366);
}

/* === 新闻卡片 === */
.news {
    background: var(--dark-bg-card);
    border: 1px solid var(--dark-border);
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.news:hover {
    border-color: var(--hacker-green);
    box-shadow: 0 0 15px var(--hacker-green-glow);
}

.news .newstitle {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news .newstitle a {
    color: var(--text-primary);
}

.news .newstitle a:hover {
    color: var(--hacker-green);
}

.news .newspic {
    float: left;
    width: 200px;
    margin-right: 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    overflow: hidden;
    border: 2px solid var(--dark-border);
}

.news .newspic img {
    width: 100%;
    height: auto;
    transition: all 0.3s ease;
}

.news:hover .newspic img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.news .newsdesc, .news .newstext {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.newsinfo {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed var(--dark-border);
}

.newsinfo ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 20px;
}

.newsinfo ul li {
    font-size: 12px;
    color: var(--text-secondary);
}

/* === 网格布局 === */
.item-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
    padding: 0;
    list-style: none;
}

.item-grid .col {
    padding: 10px;
}

.item-grid .entry-thumbnail {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    border: 2px solid var(--dark-border);
    transition: all 0.3s ease;
}

.item-grid .entry-thumbnail:hover {
    border-color: var(--hacker-green);
    box-shadow: 0 0 20px var(--hacker-green-glow);
}

.item-grid .entry-cover {
    width: 100%;
    padding-top: 56.25%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.item-grid .entry-cover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.item-grid .entry-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    margin: 0;
    font-size: 14px;
    color: #fff;
    z-index: 1;
}

.item-grid .entry-title a {
    color: #fff;
}

.item-grid .entry-title a:hover {
    color: var(--hacker-green);
}

/* 播放图标 */
.ico_play, .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 255, 65, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.ico_play::after, .play-icon::after {
    content: '';
    border-left: 20px solid var(--dark-bg);
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 5px;
}

.entry-thumbnail:hover .ico_play,
.entry-thumbnail:hover .play-icon {
    background: var(--world-cup-gold);
    transform: translate(-50%, -50%) scale(1.1);
}

/* === 侧边栏 === */
.sidebar .widget {
    margin-bottom: 20px;
}

.widget_recent_videos ul,
.widget_recent_entries ul,
.widget_post_views_counter_list_widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_recent_videos ul li,
.widget_recent_entries ul li,
.widget_post_views_counter_list_widget ul li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--dark-border);
}

.widget_recent_videos ul li:last-child,
.widget_recent_entries ul li:last-child,
.widget_post_views_counter_list_widget ul li:last-child {
    border-bottom: none;
}

.widget_recent_videos ul li a,
.widget_recent_entries ul li a,
.widget_post_views_counter_list_widget ul li a {
    color: var(--text-primary);
    font-size: 14px;
    display: block;
    padding-left: 20px;
    position: relative;
}

.widget_recent_videos ul li a::before,
.widget_recent_entries ul li a::before,
.widget_post_views_counter_list_widget ul li a::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--hacker-green);
}

.widget_recent_videos ul li a:hover,
.widget_recent_entries ul li a:hover,
.widget_post_views_counter_list_widget ul li a:hover {
    color: var(--hacker-green);
}

/* === 文章内容页 === */
.single-content, .entry-content {
    background: var(--dark-bg-card);
    border: 1px solid var(--dark-border);
    border-radius: 5px;
    padding: 30px;
    margin-bottom: 20px;
}

.entry-header {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--dark-border);
}

.entry-header h1 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.4;
}

.entry-meta {
    display: flex;
    gap: 20px;
    color: var(--text-secondary);
    font-size: 13px;
}

.entry-meta .date,
.entry-meta .views,
.entry-meta .comment {
    display: flex;
    align-items: center;
    gap: 5px;
}

.entry-meta .date::before {
    content: '📅';
}

.entry-meta .views::before {
    content: '👁';
}

.entry-body {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-primary);
}

.entry-body p {
    margin-bottom: 15px;
}

.entry-body img {
    max-width: 100%;
    border-radius: 5px;
    margin: 15px 0;
}

.entry-body h2, .entry-body h3 {
    color: var(--hacker-green);
    margin: 25px 0 15px;
}

/* 视频播放器 */
.video-player, #showplayer {
    background: #000;
    border: 2px solid var(--hacker-green);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    padding-bottom: 56.25%;
    margin-bottom: 20px;
}

.video-player iframe, #showplayer iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 直播线路选择 */
.live-sources, .video-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.live-sources a, .video-sources a {
    padding: 8px 20px;
    background: var(--dark-bg-card);
    border: 1px solid var(--dark-border);
    border-radius: 3px;
    color: var(--text-primary);
    font-size: 13px;
    transition: all 0.3s ease;
}

.live-sources a:hover, .video-sources a:hover,
.live-sources a.active, .video-sources a.active {
    background: var(--hacker-green);
    color: var(--dark-bg);
    border-color: var(--hacker-green);
}

/* === 分页 === */
.pagination, .page-nav {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 30px 0;
}

.pagination a, .pagination span,
.page-nav a, .page-nav span {
    display: inline-block;
    padding: 8px 15px;
    background: var(--dark-bg-card);
    border: 1px solid var(--dark-border);
    border-radius: 3px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination a:hover, .page-nav a:hover {
    background: var(--hacker-green);
    color: var(--dark-bg);
    border-color: var(--hacker-green);
}

.pagination .current, .page-nav .current {
    background: var(--hacker-green);
    color: var(--dark-bg);
    border-color: var(--hacker-green);
}

/* === 页脚 === */
#colophon, .site-footer {
    background: linear-gradient(180deg, var(--dark-bg-secondary) 0%, #050505 100%);
    border-top: 2px solid var(--hacker-green);
    padding: 40px 0 20px;
    margin-top: 40px;
    text-align: center;
}

#colophon::before {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--hacker-green), transparent);
    margin-bottom: 30px;
}

#colophon p {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 10px;
}

#colophon a {
    color: var(--hacker-green);
}

#colophon a:hover {
    color: var(--world-cup-gold);
}

/* 友情链接 */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 13px;
}

/* === 滚动新闻 === */
.t_news {
    background: var(--dark-bg-card);
    border: 1px solid var(--dark-border);
    border-radius: 5px;
    padding: 10px 15px;
    margin-bottom: 15px;
    overflow: hidden;
    position: relative;
}

.t_news b {
    color: var(--live-red);
    font-weight: bold;
    margin-right: 10px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.t_news a {
    color: var(--text-primary);
}

.t_news a:hover {
    color: var(--hacker-green);
}

/* === 返回顶部 === */
#assist-bar {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
}

#assist-bar #go-top {
    display: block;
    width: 50px;
    height: 50px;
    background: var(--dark-bg-card);
    border: 2px solid var(--hacker-green);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

#assist-bar #go-top::before {
    content: '↑';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: var(--hacker-green);
}

#assist-bar #go-top:hover {
    background: var(--hacker-green);
    box-shadow: 0 0 20px var(--hacker-green-glow);
}

#assist-bar #go-top:hover::before {
    color: var(--dark-bg);
}

/* === 表单元素 === */
.form-control, input[type="text"], input[type="email"], input[type="search"], textarea, select {
    display: block;
    width: 100%;
    padding: 10px 15px;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--dark-bg);
    border: 1px solid var(--dark-border);
    border-radius: 3px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus, input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--hacker-green);
    box-shadow: 0 0 10px var(--hacker-green-glow);
}

.btn, button[type="submit"], input[type="submit"] {
    display: inline-block;
    padding: 10px 25px;
    font-size: 14px;
    font-weight: bold;
    color: var(--dark-bg);
    background: var(--hacker-green);
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover, button[type="submit"]:hover, input[type="submit"]:hover {
    background: var(--world-cup-gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

/* === 搜索框 === */
.site-search, .search-form {
    display: flex;
    align-items: center;
}

.search-form .form-control {
    border-radius: 3px 0 0 3px;
}

.search-form .btn {
    border-radius: 0 3px 3px 0;
    padding: 10px 15px;
}

/* === 面包屑导航 === */
.breadcrumb, .m-crumb {
    padding: 15px 0;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb a:hover {
    color: var(--hacker-green);
}

.breadcrumb span {
    margin: 0 10px;
    color: var(--dark-border);
}

/* === 表格 === */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th, table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--dark-border);
}

table th {
    background: var(--dark-bg-secondary);
    color: var(--hacker-green);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
}

table tr:hover {
    background: rgba(0, 255, 65, 0.05);
}

.responsive-table {
    display: block;
    width: 100%;
    overflow-x: auto;
}

.responsive-table_hd {
    display: flex;
    background: var(--dark-bg-secondary);
    padding: 12px 0;
    font-weight: bold;
    color: var(--hacker-green);
}

.responsive-table_hd > span {
    flex: 1;
    text-align: center;
}

.responsive-table_row {
    display: flex;
    border-bottom: 1px solid var(--dark-border);
}

.responsive-table_row > span {
    flex: 1;
    text-align: center;
    padding: 12px 0;
}

/* === 热门VS对阵 === */
.hot-vs {
    margin-bottom: 20px;
}

.hot-vs ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.hot-vs ul li {
    width: 33.333%;
    padding: 10px;
}

.hot-vs ul li a {
    display: block;
    padding: 15px;
    background: var(--dark-bg-card);
    border: 1px solid var(--dark-border);
    border-radius: 5px;
    text-align: center;
    transition: all 0.3s ease;
}

.hot-vs ul li a:hover {
    border-color: var(--hacker-green);
    box-shadow: 0 0 15px var(--hacker-green-glow);
}

/* === 存档页面 === */
.archive-content {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.archive-content .post {
    width: 25%;
    padding: 10px;
}

.archive-content .thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    border: 2px solid var(--dark-border);
    transition: all 0.3s ease;
}

.archive-content .thumbnail:hover {
    border-color: var(--hacker-green);
}

.archive-content .thumbnail img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.archive-content .thumbnail:hover img {
    transform: scale(1.05);
}

.archive-content h2 {
    font-size: 14px;
    margin: 10px 0 5px;
    font-weight: normal;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
}

.archive-content h2 a {
    color: var(--text-primary);
}

.archive-content h2 a:hover {
    color: var(--hacker-green);
}

.archive-content .entry-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

/* === 球队信息 === */
.team_logo {
    text-align: center;
    padding: 40px 0;
}

.team_logo img {
    max-width: 150px;
    filter: drop-shadow(0 0 20px var(--hacker-green-glow));
}

.team_info {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

.team_info li {
    width: 50%;
    padding: 10px 15px;
    border-bottom: 1px dashed var(--dark-border);
}

.team_con {
    background: var(--dark-bg-card);
    border: 1px solid var(--dark-border);
    border-radius: 5px;
    padding: 30px;
    margin-bottom: 20px;
}

/* === 404页面 === */
.error-404 {
    text-align: center;
    padding: 100px 20px;
}

.error-404 h1 {
    font-size: 120px;
    color: var(--hacker-green);
    text-shadow: 0 0 30px var(--hacker-green-glow);
    margin-bottom: 20px;
    font-family: 'Consolas', monospace;
}

.error-404 p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* === 动画效果 === */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.widget, .news, .match-list > li {
    animation: fadeIn 0.5s ease;
}

/* 霓虹发光文字效果 */
.neon-text {
    color: var(--hacker-green);
    text-shadow: 
        0 0 5px var(--hacker-green),
        0 0 10px var(--hacker-green),
        0 0 20px var(--hacker-green),
        0 0 40px var(--hacker-green);
}

.gold-text {
    color: var(--world-cup-gold);
    text-shadow: 
        0 0 5px var(--world-cup-gold),
        0 0 10px var(--world-cup-gold),
        0 0 20px var(--world-cup-gold);
}

/* === 响应式设计 === */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
    }
}

@media (max-width: 992px) {
    .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-8, .col-md-9 {
        width: 100%;
    }
    
    .archive-content .post {
        width: 33.333%;
    }
    
    .hot-vs ul li {
        width: 50%;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    #header .container {
        flex-wrap: wrap;
    }
    
    .site-brand {
        flex: 1;
    }
    
    .site-nav {
        order: 3;
        width: 100%;
        border-top: 1px solid var(--dark-border);
        margin-top: 10px;
        padding-top: 10px;
    }
    
    .nav {
        justify-content: flex-start;
    }
    
    #main-menu li a {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .topnav {
        display: none;
    }
    
    .match-list > li {
        flex-wrap: wrap;
    }
    
    .match-list .meta {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        border-right: none;
        border-bottom: 1px solid var(--dark-border);
        padding-bottom: 10px;
        margin-bottom: 10px;
    }
    
    .match-list .teams {
        width: 100%;
        padding: 10px 0;
    }
    
    .match-list .actions {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
    
    .archive-content .post {
        width: 50%;
    }
    
    .news .newspic {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .widget-featured-comps ul li {
        width: 100%;
        float: none;
    }
}

@media (max-width: 480px) {
    .archive-content .post {
        width: 100%;
    }
    
    .hot-vs ul li {
        width: 100%;
    }
    
    .team_info li {
        width: 100%;
    }
    
    #main-menu li a {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .error-404 h1 {
        font-size: 80px;
    }
}

/* === 打印样式 === */
@media print {
    body::before, body::after {
        display: none;
    }
    
    #header, #colophon, #assist-bar, .topnav, .sidebar {
        display: none;
    }
    
    body {
        background: #fff;
        color: #000;
    }
    
    a {
        color: #000;
    }
}

/* === 辅助类 === */
.list-unstyled {
    list-style: none;
    padding-left: 0;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.sr-only, .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.auto-size-16\/9 {
    padding-bottom: 56.25%;
    display: block;
    position: relative;
}

.auto-size_target {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 世界杯特殊样式 */
.world-cup-badge {
    display: inline-block;
    padding: 3px 10px;
    background: linear-gradient(135deg, var(--world-cup-gold), #ffed4a);
    color: var(--dark-bg);
    font-size: 11px;
    font-weight: bold;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: goldShine 2s infinite;
}

@keyframes goldShine {
    0%, 100% { box-shadow: 0 0 5px var(--world-cup-gold); }
    50% { box-shadow: 0 0 20px var(--world-cup-gold); }
}

/* 直播状态标识 */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    background: var(--live-red);
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    border-radius: 3px;
    text-transform: uppercase;
}

.live-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: liveDot 1s infinite;
}

@keyframes liveDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* 黑客终端效果 */
.terminal-box {
    background: var(--dark-bg);
    border: 1px solid var(--hacker-green);
    border-radius: 5px;
    padding: 20px;
    font-family: 'Consolas', 'Monaco', monospace;
    position: relative;
}

.terminal-box::before {
    content: '$ ./hacker_worldcup';
    display: block;
    color: var(--hacker-green);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--dark-border);
}

/* 数据统计卡片 */
.stat-card {
    background: var(--dark-bg-card);
    border: 1px solid var(--dark-border);
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--hacker-green);
    box-shadow: 0 0 20px var(--hacker-green-glow);
}

.stat-card .stat-value {
    font-size: 36px;
    font-weight: bold;
    color: var(--hacker-green);
    font-family: 'Consolas', monospace;
    text-shadow: 0 0 10px var(--hacker-green-glow);
}

.stat-card .stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* 比分显示 */
.score-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background: var(--dark-bg);
    border: 2px solid var(--hacker-green);
    border-radius: 5px;
}

.score-display .team {
    text-align: center;
    flex: 1;
}

.score-display .team-name {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.score-display .team-score {
    font-size: 48px;
    font-weight: bold;
    color: var(--hacker-green);
    font-family: 'Consolas', monospace;
    text-shadow: 0 0 20px var(--hacker-green-glow);
}

.score-display .vs {
    font-size: 24px;
    color: var(--world-cup-gold);
    padding: 0 20px;
}
/* 修复：首页“热门新闻”宫格标题错位/重叠（帝国CMS结构下） */
.widget-videos .video-grid > li{
  display: flex;
  flex-direction: column;
}

/* 缩略图正常占一行 */
.widget-videos .video-grid .entry-thumbnail{
  display: block;
}

/* 关键：把标题从“绝对定位覆盖图”改回“正常流在图下面” */
.widget-videos .video-grid .entry-title{
  position: static !important;
  padding: 10px 0 0 !important;
  margin: 0 !important;
  background: transparent !important;
  color: var(--text-primary);
}

/* 标题链接别被截断（可按需保留单行省略） */
.widget-videos .video-grid .entry-title a{
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 顺手：彻底消灭图片基线空隙（可选，但建议） */
.widget-videos .video-grid img{
  display: block;
}
