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

html {
    overflow-y: scroll;
}

body {
    color: #333;
    min-width: 1200px;
    background: #f5f6fa;
    font: 12px/1.5 Microsoft Yahei, Arial, 宋体, Helvetica;
    margin: 0 !important;
    padding: 0 !important;
}

button,
input,
select,
textarea {
    font: 12px/1.5 Microsoft Yahei, Arial, 宋体, Helvetica;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

iframe,
img {
    border: 0 none;
    vertical-align: top;
}

em,
i,
ins {
    font-style: normal;
    text-decoration: none;
}

li,
ol,
ul {
    list-style: none outside none;
}

input {
    outline: none;
    border: none;
}

a {
    color: #333;
    text-decoration: none;
}

a:hover {
    color: #f30;
    text-decoration: underline;
}

.clearfix:after {
    content: "";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

.clearfix {
    *zoom: 1;
}

.lm-nav-navigation-wrapper {
    width: 100%;
    background: #f5f6fa;
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
}

.wp-site-blocks,
.entry-content,
.wp-block-post-content,
.is-layout-constrained,
.has-global-padding {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
}

main,
.wp-block-group,
.wp-block-post-content,
.wp-site-blocks {
    margin: 0 !important;
    padding: 0 !important;
}

.lm-nav-top-nav {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
}

.lm-nav-top-nav-inner {
    width: 1200px;
    margin: 0 auto;
    height: 36px;
    line-height: 36px;
    display: flex;
    justify-content: space-between;
}

.lm-nav-top-nav-links a {
    color: #666;
    margin-right: 20px;
    font-size: 12px;
}

.lm-nav-top-nav-links a:hover {
    color: #f30;
}

.lm-nav-head-and-search {
    width: 100%;
    padding: 20px 0;
}

.lm-nav-head-and-search-inner {
    width: 1200px;
    margin: 0 auto;
}

.lm-nav-comp-header {
    display: flex;
    margin-bottom: 15px;
}

.lm-nav-logo-area {
    width: 250px;
}

.lm-nav-logo {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    line-height: 76px;
}

.lm-nav-logo-subtitle {
    font-size: 13px;
    color: #888;
    margin-top: -14px;
    line-height: 1.4;
}

.lm-nav-header-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.lm-nav-header-clock {
    text-align: right;
    padding: 8px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1f6feb 0%, #13c2c2 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(31, 111, 235, 0.28);
    line-height: 1.25;
    user-select: none;
}

.lm-nav-clock-time {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.lm-nav-clock-time span {
    display: inline-block;
}

.lm-nav-clock-date {
    font-size: 13px;
    opacity: 0.92;
    margin-top: 2px;
}

.lm-nav-clock-week {
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    font-size: 12px;
}

@media (max-width: 768px) {
    .lm-nav-header-clock {
        padding: 6px 12px;
    }
    .lm-nav-clock-time {
        font-size: 20px;
    }
}

.lm-nav-search-section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
}

.lm-nav-search-container {
    width: 720px;
    margin: 0 auto;
}

.lm-nav-search-engine-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.lm-nav-engine-item {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    padding: 4px 12px;
    border-radius: 4px;
    transition: all 0.2s;
}

.lm-nav-engine-item:hover {
    color: #f30;
    background: #f5f5f5;
    text-decoration: none;
}

.lm-nav-engine-item.active {
    color: #fff;
    background: #f30;
}

.lm-nav-search-box {
    display: flex;
    height: 50px;
}

.lm-nav-search-box input {
    flex: 1;
    height: 48px;
    padding: 0 15px;
    font-size: 16px;
    border: 2px solid #f30;
    border-right: none;
    border-radius: 4px 0 0 4px;
}

.lm-nav-search-btn {
    width: 120px;
    height: 50px;
    background: #f30;
    color: #fff;
    font-size: 18px;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.lm-nav-search-btn:hover {
    background: #e02b00;
}

.lm-nav-hot-search {
    margin-top: 10px;
    text-align: center;
}

.lm-nav-hot-search span {
    color: #999;
}

.lm-nav-hot-search a {
    color: #666;
    margin: 0 10px;
}

.lm-nav-hot-search a:hover {
    color: #f30;
}

.lm-nav-main-content {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.lm-nav-content-left {
    flex: 1;
    min-width: 0;
}

.lm-nav-content-right {
    width: 280px;
    flex-shrink: 0;
}

/* 分类切换条 */
.lm-nav-cat-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.05);
    padding: 10px 15px;
    margin-bottom: 15px;
}

.lm-nav-cat-item {
    display: inline-block;
    padding: 6px 16px;
    font-size: 14px;
    color: #555;
    background: #f5f6fa;
    border-radius: 999px;
    transition: all 0.2s;
}

.lm-nav-cat-item:hover {
    color: #409eff;
    text-decoration: none;
    background: #eef4ff;
}

.lm-nav-cat-item.active {
    color: #fff;
    background: #409eff;
}

/* 友情链接通栏容器 */
.lm-nav-bottom-area {
    width: 1200px;
    margin: 0 auto 15px;
}

/* 右栏排行榜：单列显示 */
.lm-nav-content-right .lm-nav-hot-link-item {
    width: 100%;
}

.lm-nav-block {
    background: #fff;
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 15px 20px;
    position: relative;
    margin-bottom: 15px;
}

.lm-nav-block-header {
    margin-bottom: 10px;
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
}

.lm-nav-block-title {
    font-size: 16px;
    font-weight: bold;
    writing-mode: horizontal-tb;
    color: #333;
}

.lm-nav-block-content {
    width: 100%;
    clear: both;
    overflow: hidden;
}

.lm-nav-category {
    margin-bottom: 4px;
}

.lm-nav-category:last-child {
    margin-bottom: 0;
}

.lm-nav-category-title {
    display: none;
}

.lm-nav-links {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.lm-nav-link {
    font-size: 14px;
    display: block;
    width: 240px;
    margin: 0;
}

.lm-nav-link-url {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: 68px;
    padding: 10px 15px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 3px;
    color: #333;
    transition: all 0.3s;
}

.lm-nav-link-url:hover {
    color: #409eff;
    border-color: #e5e5e5;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    transform: translateY(-5px);
}

.lm-nav-link-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: #eef4ff;
    color: #409eff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lm-nav-link-icon .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
}

/* 首字图标：icon 未设置或选「首字」时，用标题首字符渲染彩色圆形图标（背景色由内联样式注入） */
.lm-nav-link-icon .lm-nav-letter-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    user-select: none;
}

.lm-nav-link-body {
    flex: 1;
    min-width: 0;
    margin-left: 10px;
    padding-right: 14px;
    line-height: 1.2;
}

.lm-nav-link-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lm-nav-link-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
    white-space: normal;
    overflow: hidden;
}

.lm-nav-link-meta {
    position: absolute;
    top: 8px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.lm-nav-link-arrow {
    color: #6c757d;
    font-size: 18px;
    opacity: 0;
    transition: all 0.3s;
}

.lm-nav-link-url:hover .lm-nav-link-arrow {
    opacity: 1;
    transform: translateX(2px);
}

.lm-nav-badge {
    display: inline-block;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 3px;
    line-height: 1.5;
}

.lm-nav-badge-new {
    background: #11b006;
    color: #fff;
}

.lm-nav-badge-hot {
    background: #f30;
    color: #fff;
}

.lm-nav-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lm-nav-sidebar-list li {
    display: block;
}

.lm-nav-sidebar-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    background: #f8f9fb;
    border: 1px solid #eef0f3;
    border-radius: 8px;
    color: #333;
    font-size: 14px;
    transition: all 0.2s;
}

.lm-nav-sidebar-list li a:hover {
    background: #fff;
    border-color: #f30;
    color: #f30;
    text-decoration: none;
    transform: translateY(-1px);
}

.lm-nav-sidebar-list li a .dashicons {
    font-size: 18px;
    color: #1f6feb;
    flex-shrink: 0;
}

.lm-nav-footer {
    width: 100%;
    padding: 30px 0;
    text-align: center;
    color: #999;
}

.lm-nav-footer-links {
    margin-bottom: 10px;
}

.lm-nav-footer-links a {
    color: #666;
    margin: 0 15px;
}

.lm-nav-footer-links a:hover {
    color: #f30;
}

.lm-nav-footer p {
    font-size: 12px;
}

.lm-nav-footer a {
    color: #666;
}

.lm-nav-footer a:hover {
    color: #f30;
}

.lm-nav-ad {
    margin: 15px 0;
    text-align: center;
}

.lm-nav-ad-header {
    padding: 10px 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.05);
}

.lm-nav-ad-content_top,
.lm-nav-ad-content_bottom,
.lm-nav-ad-between_blocks {
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.05);
}

.lm-nav-ad img {
    max-width: 100%;
    height: auto;
}

.lm-nav-text-ad-link {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
}

.lm-nav-text-ad-link:hover {
    color: #f30;
    text-decoration: underline;
}

.lm-nav-text-ad-desc {
    display: block;
    color: #999;
    font-size: 12px;
    margin-top: 5px;
}

.lm-nav-hot-links .lm-nav-block-header {
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
}

.lm-nav-hot-links .lm-nav-block-title {
    font-size: 16px;
    font-weight: bold;
    writing-mode: horizontal-tb;
    color: #333;
}

.lm-nav-hot-links .lm-nav-block-content {
    width: 100%;
    clear: both;
    overflow: hidden;
}

.lm-nav-hot-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.lm-nav-hot-link-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f5f6fa;
    border-radius: 4px;
    width: calc(50% - 5px);
}

.lm-nav-hot-link-item.lm-nav-hot-top {
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
}

.lm-nav-hot-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #999;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    flex-shrink: 0;
}

.lm-nav-hot-link-item:nth-child(1) .lm-nav-hot-rank {
    background: linear-gradient(135deg, #ff6b6b 0%, #f30 100%);
}

.lm-nav-hot-link-item:nth-child(2) .lm-nav-hot-rank {
    background: linear-gradient(135deg, #ffa94d 0%, #ff8c00 100%);
}

.lm-nav-hot-link-item:nth-child(3) .lm-nav-hot-rank {
    background: linear-gradient(135deg, #74c0fc 0%, #1c7ed6 100%);
}

.lm-nav-hot-link-title {
    flex: 1;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.lm-nav-hot-link-title:hover {
    color: #f30;
    text-decoration: underline;
}

.lm-nav-friendlinks .lm-nav-block-header {
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
}

.lm-nav-friendlinks .lm-nav-block-title {
    font-size: 16px;
    font-weight: bold;
    writing-mode: horizontal-tb;
    color: #333;
}

.lm-nav-friendlinks .lm-nav-block-content {
    width: 100%;
    clear: both;
    overflow: hidden;
}

.lm-nav-friendlinks-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.lm-nav-friendlink-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: #f5f6fa;
    border-radius: 4px;
    transition: all 0.2s;
}

.lm-nav-friendlink-item:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lm-nav-friendlink-item a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #333;
    text-decoration: none;
}

.lm-nav-friendlink-item a:hover {
    color: #f30;
    text-decoration: none;
}

.lm-nav-friendlink-logo {
    max-height: 24px;
    max-width: 80px;
    border-radius: 4px;
}

.lm-nav-friendlink-name {
    font-size: 14px;
}

.lm-nav-modal-open {
    overflow: hidden;
}

.lm-nav-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.lm-nav-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
}

.lm-nav-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e8e8e8;
}

.lm-nav-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.lm-nav-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.lm-nav-modal-close:hover {
    color: #f30;
    background: #f5f5f5;
}

.lm-nav-modal-content {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(80vh - 60px);
    color: #333;
    line-height: 1.6;
}

.lm-nav-modal-content p {
    margin-bottom: 10px;
}

.lm-nav-modal-content a {
    color: #f30;
    text-decoration: underline;
}

.lm-nav-empty-tip {
    color: #999;
    font-size: 13px;
    padding: 8px 0;
}
