/*
Theme Name: hytaleserver
Theme URI: https://xz.hytaleserver.cn
Description: 优化版 hytaleserver 主题，保留原蓝黑风格，提升视觉效果与可读性。
Version: 1.1
Author: hytaleserver
Author URI: https://xz.hytaleserver.cn
*/

body {
    font-family: "Microsoft Yahei", "Tahoma", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background-image: url(img/sbbg.jpg?eo-img.format=avif);
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    margin: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.9);
}
* {
  -webkit-tap-highlight-color: transparent;
}
a:link,
a:visited {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
}

a:hover {
    color: #4d70a9;
    text-decoration: none;
}
input:focus {
  outline: none;
}
.container {
    margin-right: auto;
    margin-left: auto;
    max-width: 1200px;
    display: block;
}

.navbar {
    background: #203658;
    z-index: 99;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3.3em;
    width: 100%;
    border-bottom: 2px solid #4e5765;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    margin: 0;
    padding: 0 1em;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 120px;
    width: auto;
    transition: transform 0.3s ease;
    margin-top: 70px;
}

.logo img:hover {
    transform: scale(1.1);
}



.navbar-links ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5em;
	align-items: center;
}

.navbar-links ul li a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95em;
    padding: 0.5em 0.8em;
    transition: background 0.2s ease, color 0.2s ease;
    border-radius: 4px;
}

.navbar-links ul li a:hover {
    color: #fff;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, 0) 100%);
}

.navbar-links .current-menu-item > a,
.navbar-links .current_page_item > a {
  color: #ecbc62 !important;
}

.navbar-links .current-menu-item .fa,
.navbar-links .current_page_item .fa {
  color: #ecbc62 !important;
}
.navbar-links form{
	background: #4d70a9;
    border-radius: 4px;
}
.search {
    align-items: center;
    margin: 0;
    flex-shrink: 0;
}

.search form {
    display: flex;
}
.menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
}
.letterinput {
    padding: 0.4em 0.8em;
    border: none;
    border-radius: 4px 0 0 4px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    width: 150px;
    font-size: 0.9em;
	box-sizing: border-box;
    vertical-align: middle;	
}

.letterinput::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.gobutton {
    padding: 0.4em 0.8em;
    border: none;
    border-radius: 0 4px 4px 0;
    background: #4d70a9;
    color: white;
    cursor: pointer;
    transition: background 0.2s;
	box-sizing: border-box;
    vertical-align: middle;	
}

.gobutton:hover {
    background: #3a5a87;
}

.col1 {
    margin: 5em auto 0 auto;
    max-width: 1200px;
    display: flex;
    gap: 2em;
    align-items: flex-start;
	box-sizing: border-box;
}

.row {
    width: 75%;
    border-radius: 0.5em;
	box-sizing: border-box;
}

.sidebar {
    width: 25%;
    border-radius: 0.5em;
	box-sizing: border-box;
}
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.alignleft {
    float: left;
    margin-right: 1em;
    margin-bottom: 1em;
}
.alignright {
    float: right;
    margin-left: 1em;
    margin-bottom: 1em;
}
.alignnone {
    /* 默认情况下不需要额外的样式 */
}

.wp-block-table table,
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}

.wp-block-table th,
.wp-block-table td,
table th,
table td {
  border: 1px solid #4d70a9;
  padding: 8px 12px;
}

.wp-block-table th,
table th {
  background-color: #4d70a9;
  color: white;
  text-align: left;
  white-space: nowrap;
}

.post {
    background-color: rgba(210, 233, 247, 0.08);
    padding: 2em;
    border-radius: 8px;
    margin: 2em 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.9);
}
.post h2,.post h3{
	color: #ecbc62;
}
.post hr{
    border: 0;
    border-top: 2px dashed #4d70a9;
}
.post h1,
.post h1 span {
    font-size: 1.2em;
    font-weight: bold;
    color: #ecbc62;
    margin: 0 0 1em 0;
    padding-bottom: 0.5em;
    line-height: 1.3;
}

iframe[src*="player.bilibili.com"] {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  display: block;
  border: none;
  max-width: 100%;
}

.post h1[itemprop="itemReviewed"] {
    font-size: 1.8em;
    color: #4d70a9;
    margin-bottom: 1em;
    border-bottom: 3px solid #4d70a9;
    padding-bottom: 0.5em;
    text-align: center;
}
h1 strong{
	border-bottom: 3px solid #4d70a9;
    padding: 10px 0;
}

.entry,
.entry-content {
    font-size: 1.1em;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin: 1.5em 0;
}

.entry p,
.entry-content p {
    margin-bottom: 1.2em;
}

.entry blockquote {
    border-left: 4px solid #4d70a9;
    background: rgba(77, 112, 169, 0.1);
    padding: 1em;
    margin: 1.5em 0;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

.post .tags-links,
.post a[rel="tag"],
.post-tags a,
.entry-tags a {
    display: inline-block;
    background: rgba(77, 112, 169, 0.2);
    color: #4d70a9 !important;
    padding: 0.3em 0.8em;
    margin: 0.2em 0.3em 0.2em 0;
    border-radius: 12px;
    font-size: 0.9em;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(77, 112, 169, 0.3);
}
.tag a{
    padding: 0 5px;
}
.post .tags-links a:hover,
.post a[rel="tag"]:hover,
.entry-tags a:hover {
    background: #4d70a9;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(77, 112, 169, 0.3);
}

.post ul.tags li a {
    background: rgba(77, 112, 169, 0.2);
    color: #4d70a9;
    padding: 0.3em 0.7em;
    border-radius: 10px;
    font-size: 0.9em;
    text-decoration: none;
}

.post ul.tags li a:hover {
    background: #4d70a9;
    color: #fff;
}

.post-meta,
.entry-meta {
    margin: 1.5em auto;
    padding: 0;
    list-style: none;
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    line-height: 1.6;
    max-width: 90%;
}

.post-meta li,
.entry-meta li {
    display: inline-block;
    margin: 0.2em 0.5em;
    vertical-align: top;
}

.post-meta li i,
.entry-meta li i {
    margin-right: 0.4em;
    color: #4d70a9;
    width: 14px;
    text-align: center;
}

.post-meta a,
.entry-meta a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.post-meta a:hover,
.entry-meta a:hover {
    color: #4d70a9;
    text-decoration: underline;
}

.sidebar .well.col {
    background-color: rgba(210, 233, 247, 0.08);
    padding: 1.5em;
    border-radius: 8px;
    margin-bottom: 2em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: rgba(255, 255, 255, 0.9);
	box-sizing: border-box;
}

.sidebar .well.col h5 {
    margin: 0 0 1em 0;
    font-size: 1.1em;
    font-weight: bold;
    color: #4d70a9;
    border-bottom: 2px solid rgba(77, 112, 169, 0.3);
    padding-bottom: 0.4em;
}
/*
.sidebar .col2 a:nth-child(odd):not(.tag-cloud-link)::before {
    content: "⚔️";
    margin-right: 0.5em;
    font-size: 0.9em;
	font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
}

.sidebar .col2 a:nth-child(even):not(.tag-cloud-link)::before {
    content: "🎯";
    margin-right: 0.5em;
    font-size: 0.9em;
	font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
}
*/
.recommend-item {
    display: block;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: color 0.2s;
}

.recommend-item:hover {
    color: #0073aa;
}

.item-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background-color: rgba(77, 112, 169, 0.2);
    color: #4d70a9 !important;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    margin-right: 5px;
	border: 1px solid rgba(77, 112, 169, 0.3);
}

.sidebar .col2 {
    padding: 0;
    margin: 0;
    font-size: 0.95em;
    line-height: 2;
    display: flex;
    flex-direction: column;
}

.sidebar .col2 a:hover {
    color: #4d70a9;
}

.sidebar .col2 a[rel="tag"],
.sidebar .col2 .tag-cloud-widget a {
    display: inline-block;
    background: rgba(77, 112, 169, 0.2);
    color: #4d70a9 !important;
    padding: 0.2em 0.6em;
    margin: 0.1em 0.3em 0.2em 0;
    border-radius: 10px;
    font-size: 0.85em !important;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(77, 112, 169, 0.3);
}

.sidebar .col2 a[rel="tag"]:hover,
.sidebar .col2 .tag-cloud-widget a:hover {
    background: #4d70a9;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(77, 112, 169, 0.3);
}


.footer {
    background-color: #203658;
    color: #ffffff;
    padding: 1em 0; 
	border-top: 2px solid #4e5765;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1em;
}

.footer-main {
    display: flex;
    gap: 1.5em;
}

.footer-main a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.2s ease;
}

.footer-main a:hover {
    color: #4d70a9;
    text-decoration: underline;
}

.footer-copyright {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.6);
}

.footer-copyright a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-copyright a:hover {
    color: #4d70a9;
    text-decoration: underline;
}

.back-to-top {
    position: fixed;
    right: 50px;
    bottom: 20px;
    z-index: 1000;
}

.back-to-top img {
    width: 60px;
    height: auto;
    border-radius: 8px;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.8;
}

.back-to-top img:hover {
    transform: scale(1.1);
    opacity: 1;
}

.back-to-top {
    position: fixed;
    right: 50px;
    bottom: 20px;
    z-index: 1000;
}

.back-to-top img {
    width: 60px;
    height: auto;
    border-radius: 8px;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.8;
}

.back-to-top img:hover {
    transform: scale(1.1);
    opacity: 1;
}
.container.col1 {
    max-width: 1200px;
    margin: 2em auto;
    padding: 0 1em;
	margin-top: 80px;
}


.item-list {
    background: rgba(210, 233, 247, 0.08);
    border-radius: 8px;
    margin-bottom: 2em;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.item-list:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.pot_img {
    position: relative;
}

.pot_img a {
    display: block;
    overflow: hidden;
}

.pot_img img {
    width: 100%;
    height: 350px;
	object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.pot_img img:hover {
    transform: scale(1.05);
}

.item-list > div:first-child {
    width: 100%;
}

.item-list > div:last-child {
    padding: 1em;
}

.item-list h2 {
    margin: 0 0 0.8em 0;
}

.item-list h2 a {
    color: #ecbc62;
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;
}

.item-list h2 a:hover {
    color: #ecbc62cc;
    text-decoration: none;
}

.item-list p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 1em 0;
    line-height: 1.6;
    font-size: 0.95em;
}

.read-more {
    color: #4d70a9;
    font-size: 0.9em;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.read-more:hover {
    color: #3a5a87;
    text-decoration: underline;
}

.navigation.pagination {
    margin: 2em 0;
    text-align: center;
}

.navigation.pagination .page-numbers {
    display: inline-block;
    padding: 0.5em 1em;
    margin: 0 0.2em;
    background: rgba(210, 233, 247, 0.1);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
}

.navigation.pagination .page-numbers.current,
.navigation.pagination .page-numbers:hover {
    background: #4d70a9;
    color: #fff;
    text-decoration: none;
}

.comments-template {
    margin-top: 3em;
}


@media (max-width: 767px) {
    body {
        font-size: 14px; 
        line-height: 1.6;
        padding-top: 3.3em;
		box-sizing: border-box;
		overflow-x: hidden;
    }

    a {
        color: rgba(255, 255, 255, 0.9);
    }
	.container.col1{
		margin-top: 20px;
		padding: initial;
        margin-top: 0;
        gap: 1.5em;		
	}
	.col1{
		flex-direction: column;
	}
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 3.3em;
        background: #203658;
        z-index: 9999; 
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
	.navbar-links .download-btn{
		display: block !important;
	}
    .navbar .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 100%;
        margin: 0;
        padding: 0 1em;
        max-width: 1200px;
        margin: 0 auto;
    }

    .logo img {
        height: 100px !important;
        width: auto;
        margin-top: 0 !important;
        transition: transform 0.3s ease;
		margin-top: 50px !important;
    }

    .logo img:hover {
        transform: scale(1.05);
    }
   .navbar-links{
        display: none;
        flex-direction: row;
        position: absolute;
        top: 46px;
        right: 0;
        background-color: #203658;
		padding: 20px;
        gap: 0;
		border: 2px solid #4e5765;
    }
	.navbar-links ul{
		flex-direction: column;
	}
    .navbar-links .active {
        display: flex;
    }

    .menu-icon {
        display: block;
    }

    .navbar-links ul li a {
        color: rgba(255, 255, 255, 0.8);
        border-radius: 4px;
        transition: background 0.2s, color 0.2s;
		font-size: large;
    }

    .search {
        display: flex;
        align-items: center;
        margin: 0;
        flex-shrink: 0;
    }

    .search form {
        display: flex;
    }

    .letterinput {
        padding: 0.7em 1em;
        border: none;
        border-radius: 4px 0 0 4px;
        background: rgba(255, 255, 255, 0.1);
        color: white;
        width: 120px;
        font-size: 1em;
    }

    .letterinput::placeholder {
        color: rgba(255, 255, 255, 0.6);
    }

    .gobutton {
        padding: 0.6em 1em;
        border: none;
        border-radius: 0 4px 4px 0;
        background: #4d70a9;
        color: white;
        cursor: pointer;
        transition: background 0.2s;
    }

    .gobutton:hover {
        background: #3a5a87;
    }

    .row,
    .sidebar {
        width: 100% !important;
        float: none;
        padding: 1em;
		box-sizing: border-box;
    }

    .row {
        background-color: rgba(210, 233, 247, 0.04);
        border-radius: 0.5em;
    }

    .sidebar {
        background-color: rgba(210, 233, 247, 0.04);
        border-radius: 0.5em;
    }

    .post {
        padding: 1.5em;
        margin: 1em 0;
        border-radius: 8px;
        background-color: rgba(210, 233, 247, 0.08);
    }
	.post h2,.post h3{
		color: #ecbc62;
	}
	.post h1, .post h1 span{
		font-size: 0.8em;
	}

	table {
		display: block;
		overflow-x: auto;
		white-space: nowrap;
		-webkit-overflow-scrolling: touch;
	}
	/* 修复内部元素 */
	table thead, table tbody, table tr {
		display: table-row;
	}
	table th, table td {
		display: table-cell;
		min-width: 100px; /* 保证列宽 */
	}	
    .footer {
        padding: 1.5em 0 1em;
        margin-top: 3em;
        background-color: #203658;
        color: #fff;
    }

    .footer .container {
        flex-direction: column;
        gap: 1em;
        text-align: center;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 1em;
    }
	.footer-main{
		flex-direction: column;
	}
	
	#back-top{
		display: none;
	}
    .item-list img {
        width: 100% !important;
        height: auto;
    }
}