/*
Theme Name: IDHE Dynamic Theme
Description: 动态WordPress主题，基于IDHE蓝调，新锐智能，文章+全屏游戏iframe，支持幻灯片、搜索、分页
Author: Grok
Version: 2.2
*/

:root {
    --primary: #0066cc;
    --primary-light: #0066cc;
    --accent: #0099ff;
    --text: #A9A9A9;
    --bg: #FFFFFF;
    --card: #ffffff;
    --shadow: 0 4px 20px rgba(0, 50, 150, 0.1);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
}
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.container h1{
	background: linear-gradient(to right, transparent, #EEEEEE, transparent);
	background-size: 100% 1px; /* 宽度100%，高度2像素（线条粗细） */
	background-position: bottom center; /* 背景定位在底部居中 */
	background-repeat: no-repeat; 
}

header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light)) #0066cc;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
	border-bottom:3px solid #DAA520;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo img {
    height: 120px;
    transition: transform 0.3s;
}
.logo img:hover { transform: scale(1.05); }

/*.glow-effect {
    
    display: block;
    max-width: 100%;
    height: auto;

    核心光晕效果 - 使用多层阴影增加层次感 
    box-shadow: 
        0 0 10px 5px rgba(255, 255, 255, 0.6), 内层较亮的光晕 
        0 0 25px 15px rgba(255, 255, 255, 0.4);  外层更扩散的光晕 

     平滑过渡效果，用于交互 
    transition: box-shadow 0.3s ease-in-out;
}*/

/* 悬停时增强光晕效果 */
.glow-effect:hover {
    box-shadow: 
        0 0 15px 8px rgba(255, 255, 255, 0.8),
        0 0 35px 20px rgba(255, 255, 255, 0.6);
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}
nav li { margin-left: 40px; }
nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s;
}
nav a:hover { color: var(--accent); }

.hamburger { display: none; cursor: pointer; padding: 10px; }
.hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background: white;
    margin: 6px 0;
    transition: 0.3s;
}
article img {
	display:block;
	width:100%;
	height:100%;
	margin:0 auto;
}
.entry-content p {
	text-align:left;
}
/* 搜索表单 */
.search-form {
    position: relative;
    margin-left: 80px;
}
.search-form input[type="search"] {
    padding: 10px 40px 10px 15px;
    border: none;
    border-radius: 30px;
    background: rgba(255,255,255,0.2);
    color: white;
    width: 240px;
    transition: all 0.3s;
}
.search-form input[type="search"]::placeholder { color: rgba(255,255,255,0.7); }
.search-form input[type="search"]:focus {
    outline: none;
    background: white;
    color: var(--text);
    width: 300px;
}
.search-form button {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
}
.search-form button:hover { color: var(--accent); }

main { padding: 60px 0; }
h1, h2, h3 { color: var(--primary); font-weight: 700; }
a {color:#0693e3;text-decoration: none;}
.center{text-align:center !important;}
.clear{clear:both;}

.post-card {
    background: var(--card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
}
.post-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 35px rgba(0, 50, 150, 0.2);
}
.post-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.card-content {
    padding: 24px;
}
.card-content h2 {
    margin: 0 0 12px;
    font-size: 1.4rem;
}
.card-content a { color: var(--primary); text-decoration: none; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.game-iframe {
    width: 100%;
    height: calc(100vh - 110px);
    border: none;
    background: #000;
}

.game-description {
    max-width: 900px;
    margin: 40px auto 0;
    padding: 40px;
    background: var(--card);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

footer {
    background: #333333;
    color: white;
    text-align: center;
    padding: 40px 0;
    margin-top: 80px;
}
footer a { color: var(--accent); text-decoration: none; }

/* 分页 */
nav.navigation.pagination {
    text-align: center;
    margin: 60px 0;
}
.pagination .page-numbers {
    display: inline-block;
    padding: 10px 18px;
    margin: 0 5px;
    background: white;
    color: var(--primary);
    border-radius: 30px;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--primary);
    color: white;
}
.pagination .prev, .pagination .next { font-weight: bold; }

/* Featured Slider - 大气幻灯片 */
.featured-slider {
    position: relative;
    height: 70vh;
    overflow: hidden;
    margin-bottom: 8px;
}
/* 幻灯片修复样式 */
.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 500px; /* 根据实际需要调整高度 */
}

.slides {
    display: flex;
    width: 300%; /* 3张图片就是300% */
    height: 100%;
    transition: transform 0.6s ease-in-out;
    will-change: transform;
}

.slide {
    flex: 0 0 33.3333%; /* 每张占1/3，因为总共是300%宽度 */
    width: 33.3333%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
	display:block;
	overflow:hidden;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-overlay p {
	margin:0 100px 10px;
	}

/* 导航点样式 */
.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
	border:1px solid #333333;
}

.dot.active {
    background: #FFFFFF !important;
	border:1px solid #0066CC;
}

/* 导航按钮 */
.slider-nav-buttons button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
    transition: background 0.3s ease;
}

.slider-nav-buttons button:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-nav-buttons .prev {
    left: 20px;
}

.slider-nav-buttons .next {
    right: 20px;
}

/* Slogan 区 */
.slogan-section {
    background: #F0F8FF;
    color: #A9A9A9;
    text-align: center;
    padding: 100px 0;
}
.slogan-section h2 {
    font-size: 3.8rem;
    margin-bottom: 30px;
}
.slogan-section p {
    font-size: 1.6rem;
    max-width: 900px;
    margin: 0 auto 60px;
    opacity: 0.95;
	text-align:left;
}
.slogan-cards .post-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}
.slogan-cards h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

/* 移动端 */
@media (max-width: 768px) {
    .header-inner { flex-direction: column; align-items: flex-start; }
    .logo { margin-bottom: 15px; }
    .hamburger { display: block; position: absolute;right: 0;bottom: 15px;}
    nav { display: none; width: 100%; background: var(--primary); margin-top: 15px; }
    nav.active { display: block; }
    nav ul { flex-direction: column; align-items: flex-start; }
    nav li { margin: 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
    nav a { display: block; padding: 15px 20px; }
    .search-form {
        margin: 15px 20px 0;
        width: calc(100% - 40px);
    }
    .search-form input[type="search"] { width: 100%; }
    .search-form input[type="search"]:focus { width: 100%; }
    main { padding: 40px 0; }
    .grid { grid-template-columns: 1fr; }
    .game-iframe { height: calc(100vh - 160px); }
    .featured-slider { height: 50vh; }
    .slide-overlay h2 { font-size: 2.2rem; }
    .slide-overlay p { font-size: 1.2rem; }
    .prev, .next { width: 50px; height: 50px; font-size: 2rem; }
    .slogan-section { padding: 60px 0; }
    .slogan-section h2 { font-size: 2.8rem; }
    .slogan-section p { font-size: 1.4rem; }
	.slide-overlay h2 {
		font-size: 14px !important;       /* 适当调小字体大小，更适合移动阅读 */
		margin: 0 0 15px 0 !important;   /* 移除左右边距，上下边距保持不变 */
		line-height: 1.3 !important;      /* 微调行高，提升可读性 */
		width: 100%;          /* 确保宽度撑满容器 */
		box-sizing: border-box; /* 内边距和边框包含在元素宽度内，布局更可控 */
		word-wrap: break-word; /* 确保长英文单词或URL能自动换行 */
		 word-break: break-word; /* 更积极的换行策略 */
		padding: 0 16px; /* 添加适当内边距 */
		white-space: normal; /* 确保正常换行 */
	}
	.slide-overlay p {
		font-size: 12px !important;       /* 适当调小字体大小，更适合移动阅读 */
		margin: 0 0 15px 0 !important;   /* 移除左右边距，上下边距保持不变 */
		line-height: 1.3 !important;      /* 微调行高，提升可读性 */
		width: 100%;          /* 确保宽度撑满容器 */
		box-sizing: border-box; /* 内边距和边框包含在元素宽度内，布局更可控 */
		word-wrap: break-word; /* 确保长英文单词或URL能自动换行 */
		 word-break: break-word; /* 更积极的换行策略 */
		padding: 0 16px; /* 添加适当内边距 */
		white-space: normal; /* 确保正常换行 */
	}