/*! 
 * Theme Name:new5rust
 * Theme URL:pic
 * Description:
 * Author:
 * Author URI:
 * Version:1.4
 */
:root {
    /* --bg-main: #f8f9fa; */
    --panel-bg: #ffffff;
    --border-color: #dee2e6;
    --text-main: #2c3e50;
    --text-muted: #6c757d;
    --accent-color: #69a84e;
    --brand-color: #69a84e;
    --nav-height: 70px;
    --meta-item-bg: #e8e8e8;
    --page-header-bg: #384047;
    --page-header-text: #eee;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-main: #121212;
        --panel-bg: #1e1e1e;
        --border-color: #333333;
        --text-main: #e0e0e0;
        --text-muted: #b0b0b0;
        --accent-color: #ff4444;
        --brand-color: #ff6651;
        --meta-item-bg: #2a2a2a;
        --page-header-bg: #1e1e1e;
        --page-header-text: var(--text-main);
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    display: block;
    margin: 0px;
    /* font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; */
    font-family:
        Microsoft Yahei,
        Helvetica Neue,
        Helvetica,
        Arial,
        sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    /* display: flex; */
    /* flex-direction: column; */
}
a {
    text-decoration: none;
    color: inherit;
}
header {
    position: static;
    width: 100%;
    height: var(--nav-height);
    z-index: 2147483647;
    background-color: var(--panel-bg);
    border-bottom: 1px solid #eee;
    box-shadow: 1px 0 5px rgba(0, 0, 0, 0.06);
}
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 10;
}
.logo-text {
    display: none;
}

#menu-toggle,
.sub-menu-toggle {
    display: none;
}
.menu-icon {
    /* margin-right: 30px; */
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-main);
}
.nav-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: flex-end;
    height: 100%;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 10px;
    align-items: center;
    height: 100%;
}
.nav-item {
    font-size: 1.1em;
    font-weight: 500;
    padding: 10px;
    color: var(--text-main);
    transition: color 0.2s;
    cursor: pointer;
    /* display: block; */
}
.nav-item:hover {
    color: var(--accent-color);
}
.dropdown-label {
	-webkit-user-select: none;
    user-select: none;
	}
.dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}
.sub-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--panel-bg);
    border-top: none;
    border-radius: 8px 8px 8px 8px;
    padding: 10px 0;
    min-width: 120px;
    list-style: none;
    z-index: 1000;
    border: 1px solid #999;
    /* border-radius: 2px; */
    /* background-color: #fff; */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.dropdown:hover .sub-nav {
    display: block;
}
.sub-nav-item a {
    display: block;
    padding: 10px 15px;
    font-size: 1rem;
    transition: background 0.2s;
}
.sub-nav-item a:hover {
    background-color: rgba(255, 102, 81, 0.1);
    color: var(--accent-color);
}
.search-box {
    position: relative;
}
.search-box form {
    display: flex;
    align-items: center;
}
.search-box input {
    padding: 12px 20px;
    border-radius: 20px;
    border: 2px solid var(--border-color);
    background-color: var(--panel-bg);
    color: var(--text-main);
    outline: none;
    width: 200px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.search-box input:hover {
    border-color: #e15f4187;
    box-shadow: 0 4px 12px rgba(225, 95, 65, 0.15);
}
.search-box input:focus {
    border-color: var(--accent-color);
    width: 250px;
    box-shadow: 0 6px 20px rgba(225, 95, 65, 0.2);
    background-color: var(--panel-bg);
}
.search-box input::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}
@media (max-width: 900px) {
    .menu-icon {
        display: block;
        /* margin-right: 30px; */
    }
    .mobile-overlay {
        display: none;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100vw;
        height: calc(100vh - var(--nav-height));
        background-color: rgba(0, 0, 0, 0.4);
        z-index: 990 !important;
        cursor: pointer;
    }
    #menu-toggle:checked ~ .mobile-overlay {
        display: block;
    }
    .nav-content {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: auto;
        background-color: var(--panel-bg) !important;
        flex-direction: column;
        align-items: stretch;
        max-height: 0;
        visibility: hidden;
        opacity: 0;
        overflow: hidden;
        /* transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0s 0.3s; */
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 999 !important;
    }
    #menu-toggle:checked ~ .nav-content {
        max-height: 800px;
        visibility: visible;
        opacity: 1;
        /* transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0s; */
        border-bottom: 1px solid var(--border-color);
    }
    .nav-content {
        flex-direction: column;
        align-items: stretch;
    }
    .nav-content > .nav-item {
        padding: 15px;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
        font-size: 1.3rem;
        font-weight: 600;
    }
    .nav-links {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        text-align: center;
        padding: 10px;
        gap: 10px;
        list-style: none;
        margin: 0;
    }
    .nav-links > li {
        margin: 0;
        padding: 0;
    }
    .nav-links .nav-item {
        text-align: center;
        padding: 10px;
        font-size: 1rem;
        font-weight: normal;
    }
    .dropdown {
        position: static;
        display: contents;
    }
    .dropdown-label {
        display: none;
    }
    .sub-nav {
        display: contents !important;
        position: static;
        background: none;
        border: none;
        padding: 0;
        margin: 0;
    }
    .sub-nav-item {
        display: list-item;
    }
    .sub-nav-item a {
        display: block;
        text-align: center;
        padding: 5px;
        font-size: 1rem;
    }
    .search-box {
        padding: 15px 20px;
        position: relative;
        z-index: 1000 !important;
    }

    #sub-menu-toggle,
    #sub-menu-toggle:checked ~ .dropdown-label::after,
    #sub-menu-toggle:not(:checked) ~ .dropdown-label::after,
    #sub-menu-toggle:not(:checked) ~ .sub-nav {
        all: unset;
        display: none !important;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    .search-box input {
        width: 100%;
        border-radius: 25px;
        padding: 14px 20px;
        font-size: 16px;
        border-width: 2px;
    }
    .search-box input:focus {
        width: 100%;
        box-shadow: 0 4px 15px rgba(225, 95, 65, 0.25);
    }
}
.article-page {
    max-width: 1400px;
    margin: auto;
    /* margin: 10px; */
}
.content-panel {
    background-color: var(--panel-bg);
    /* border-radius: 12px; */
    padding: 0px 10px 0px 10px;
    /* border: 1px solid var(--border-color); */
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); */
    /* margin-top: 10px; */
}
.article-header-premium {
    position: static !important;
    z-index: auto !important;
    margin-top: 10px;
}
.article-header-premium h1 {
    font-size: 1.8rem;
    /* color: var(--brand-color); */
    /* text-align: center; */
    margin-left: 10px;
    margin-bottom: 5px;
    line-height: 1.4;
}
.article-meta-grid {
    /* margin-top: 20px; */
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    /* justify-content: flex-start; */
    padding: 5px;
    background-color: var(--panel-bg);
    border-radius: 8px;
    /* border: 1px solid var(--border-color); */
    /* box-sizing: border-box; */
    /* margin-bottom: 20px; */
}
.meta-item-box {
    margin-right: 5px;
    margin-bottom: 5px;
    padding: 8px 10px 8px;
    font-size: 16px;
    line-height: 1;
    background-color: var(--meta-item-bg);
    color: var(--text-main);
    display: inline-block;
    border-radius: 8px;
}
.meta-item-box:hover {
    background-color: #69a84e;
    color: #fff;
}
.meta-icon {
    margin-right: 8px;
    font-size: 1.1rem;
}
.meta-label {
    color: var(--text-muted);
    margin-right: 5px;
    font-weight: 500;
}
.meta-value {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
}
.meta-value.link {
    color: var(--accent-color);
    text-decoration: none;
    position: relative;
}

.article-content {
    line-height: 1.7;
    font-size: 1.1rem;
    /* margin-top: 15px; */
    /* padding-top: 10px; */
    overflow-wrap: break-word;
}
.article-content img {
    max-width: 100% !important;
    height: auto !important;
    /* display: block; */
    cursor: pointer;
}

.content-img {
    display: grid;
    gap: 8px;
}

.img-item {
    display: flex;
    flex-direction: column;
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.img-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}
.img-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}
.img-card-info {
    padding: 5px;
    display: flex;
    align-items: center;
    /* gap: 6px; */
    font-size: 16px;
}
.img-card-title {
    color: #69a84e;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.img-card-price {
    color: #dc143c;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    display: none;
}

@media (max-width: 640px) {
    .content-img {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 641px) {
    .content-img {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Lightbox */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    cursor: pointer;
    justify-content: center;
    align-items: center;
}
.lightbox-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
}
.lightbox-card {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    /* max-width: 95vw; */
    /* max-height: 95vh; */
    background: var(--panel-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}
.lightbox-card img {
    /* é™åˆ¶ä¸ºè§†å£å®½é«˜çš„ç™¾åˆ†æ¯”ï¼Œç¡®ä¿å®½åº¦å¯å¡«å……è§†å£ */
    max-width: 100vw;
    max-height: 100vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    background: #000;
}
.lightbox-card-info {
    position: absolute;
    top: 80%;
    left: 0;
    /* right: 0; */
    transform: translateY(-50%);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    font-size: 15px;
    background: rgba(0, 0, 0, 0.55);
    /* backdrop-filter: blur(4px); */
}
.lightbox-card-title {
    color: #fff;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lightbox-card-price {
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    display: none;
}
.price {
    color: #69a84e;
    font-size: 22px;
}
.tit {
    display: inline-block;
    display: none;
}
.contact {
    text-align: center;
    display: none;
}
.contact img {
    float: left;
    margin-left: -95px;
    width: 80px;
    height: 80px;
}
.contact-info {
    position: relative;
    display: inline-block;
    overflow: hidden;
    padding: 15px 15px 15px 110px;
    width: 350px;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.02);
    text-align: left;
}
/* .contact-info h3 {
    color: var(--accent-color);
    margin-bottom: 12px;
} */
span.wechat {
    overflow: hidden;
    margin-bottom: 5px;
    height: 19px;
    color: #ff8574;
    font-weight: 700;
    font-size: 13px;
}
span.telegram {
    overflow: hidden;
    height: 32px;
    color: var(--text-main);
    font-weight: 700;
    font-size: 14px;
}
span.whatsapp {
    position: absolute;
    bottom: 15px;
    color: #7bd172;
    font-size: 14px;
}
span.telegram a,
span.whatsapp a {
    color: inherit;
    text-decoration: none;
}
span.telegram a:hover,
span.whatsapp a:hover {
    color: #ff6651;
}
main {
    /* flex: 1; */
    /* max-width: 1400px; */
    margin: auto;
    width: 100%;
}
.page-header {
    margin: auto;
    height: 110px;
    text-align: center;
    /* margin-bottom: 20px; */
    color: var(--brand-color);
    /* padding: 35px 0; */
    background-color: var(--page-header-bg);
    color: var(--page-header-text);
    padding: 20px;
}
.page-header h2 {
    font-size: 2rem;
    font-weight: 800;
}
.gallery-grid {
    max-width: 1400px;
    margin: 20px auto;
    margin: auto;
    /* margin: 15px; */
    padding: 15px;
    /* padding-right: 15px; */
    display: grid;
    gap: 10px;
    row-gap: 15px;
}
@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}
/* @media (min-width: 1025px) and (max-width: 1440px) { */
@media (min-width: 1025px) {
    .gallery-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}
/* @media (min-width: 1441px) {
    .gallery-grid {
        grid-template-columns: repeat(8, 1fr);
    }
} */
.empty-state {
    grid-column: 1 / -1;
    text-align: centera;
    padding: 60px 20px;
    color: var(--text-muted);
    text-align: center;
}
.empty-state p {
    margin: 10px 0;
    font-size: 1.1rem;
}
.gallery-card {
    background-color: var(--panel-bg);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #9e9e9e;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
    /* display: flex; */
    /* flex-direction: column; */
}
.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}
.gallery-card:hover .card-title {
    color: #69a84e;
}
.image-wrapper {
    width: 100%;
    padding-top: 100%;
    position: relative;
    background-color: var(--bg-main);
}
.image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-info {
    padding: 5px;
}
.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    /* margin-bottom: 10px; */
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    font-size: 0.85rem;
    color: #747d8c;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.tag-badge {
    background: #f1f3f5;
    padding: 2px 8px;
    border-radius: 4px;
}
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 30px;
}
.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    min-width: 50px;
    padding: 8px 18px;
    background-color: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin: 0;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    transition: all 0.2s;
}
.pagination span.active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    min-width: 50px;
    /* padding: 8px 24px; */
    background-color: var(--accent-color);
    color: #ffffff;
    border: 1px solid var(--accent-color);
    border-radius: 6px;
    margin: 0;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    /* box-shadow: 0 4px 12px rgba(255, 102, 81, 0.35); */
    transform: scale(1.02);
}
.pagination a.active,
.pagination a:hover {
    background-color: var(--brand-color);
    color: var(--bg-main);
    border-color: var(--brand-color);
}
.img-item {
    /* aspect-ratio: 1 / 1 !important; */
    /* background: #f5f5f5; */
    /* overflow: hidden; */
    /* border-radius: 8px; */
}

.img-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 8px;
}

.img-item:has(img[loading="lazy"]):not(:has(img[src])) {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
hr {
    box-sizing: content-box;
    height: 0;
    margin-top: 10px;
    margin-bottom: 10px;
    border: 0;
    border-top: 1px solid #eee;
}

/* Footer */
.footer {
    clear: both;
    margin-top: 30px;
    padding-top: 30px;
    padding-bottom: 45px;
    border-top: 1px solid var(--border-color);
    background-color: var(--panel-bg);
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}
.footer a {
    color: var(--text-muted);
    text-decoration: none;
}
.footer a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

/* Post Navigation */
.post-nav {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    padding: 10px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.post-nav .nav-item {
    flex: 1;
    max-width: 45%;
}
.post-nav .nav-item.prev {
    text-align: left;
    padding-left: 40px;
}
.post-nav .nav-item.next {
    text-align: right;
    padding-right: 40px;
}
.post-nav .nav-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}
.post-nav a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.post-nav a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}
.tagslist li {
    display: inline-block;
}
section.container {
    margin: auto;
    max-width: 1400px;
}

.category-section {
    padding: 15px;
}
.page-header p {
    padding-left: 55%;
}

/* 404 Page */
.not-found {
    min-height: calc(100vh - 400px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}

.not-found h1 {
    font-size: 6rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.not-found p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.not-found a {
    display: inline-block;
    padding: 12px 32px;
    font-size: 1rem;
    color: #fff;
    background-color: var(--accent-color);
    border-radius: 6px;
    text-decoration: none;
}

.not-found a:hover {
    opacity: 0.9;
}
.tagslist h4 {
    margin: 10px;
}
.category-section h3{
    margin: 10px;
}