* {
    box-sizing: border-box
}
body {
    line-height: 1.7
}
a, body {
    color: #454545
}
a {
    color: #2bf!important;
}
.main {
    float: right;
    width: 100%;
    margin-top: 10px
}
.black {
    background-color: rgba(0, 0, 0, .25);
    border-radius: 15px
}
.titlecard {
    color: rgb(216, 222, 233)!important;
    border-radius: 15px;
    opacity: 1!important;
    width: 100%;
    background-color: rgba(0, 0, 0, .25);
    padding: 1.5rem;
   
    box-shadow: 0 0 3px 2px rgba(0, 0, 0, .2);
    -webkit-transition: all 250ms cubic-bezier(.02, .01, .47, 1)
}
.cardboxshow {
    -webkit-transition: all 250ms cubic-bezier(.02, .01, .47, 1)
}
.cardw {
    border-radius: 15px;
    background-color: rgba(0, 0, 0, .25)!important;
    color: rgba(255, 255, 255, 0.71) !important;
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 20px;
    box-shadow: 0 0 3px 2px rgba(0, 0, 0, .2);
    -webkit-transition: all 250ms cubic-bezier(.02, .01, .47, 1)
}
@media only screen and (max-width:1024px) {
    .cardboxshow {
        min-width: 100% !important;
        max-width: 100% !important;
    }
}
@media only screen and (max-width:768px) {
    .main {
        width: 100%
    }
}

/* 搜索页面样式优化 */
.search-container {
    width: 100%;
    margin-top: 10px;
}

.search-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 0.6s ease-out;
}

.search-header h1 {
    color: rgb(216, 222, 233);
    font-size: 2.5em;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.search-tip {
    color: rgb(216, 222, 233, 0.8);
    font-size: 1rem;
    margin-top: 1rem;
}

.search-box {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 24px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease-out;
}

.search-box:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

.search-input-wrapper {
    display: flex;
    gap: 0.8rem;
    position: relative;
}

#search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: rgb(216, 222, 233);
    transition: all 0.3s ease;
}

#search-input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    outline: none;
}

#search-input::placeholder {
    color: rgba(216, 222, 233, 0.5);
}

#search-button {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(43, 255, 255, 0.1);
    border: 1px solid rgba(43, 255, 255, 0.2);
    border-radius: 14px;
    color: #2bf;
    cursor: pointer;
    transition: all 0.3s ease;
}

#search-button:hover {
    background: rgba(43, 255, 255, 0.15);
    border-color: rgba(43, 255, 255, 0.3);
    transform: translateY(-2px);
}

#search-button:active {
    transform: translateY(0);
}

.search-results {
    margin-top: 2rem;
    display: grid;
    gap: 1.5rem;
    animation: fadeIn 0.5s ease-out;
}

.search-result {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.search-result:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
}

.search-result h2 {
    margin: 0 0 0.8rem 0;
    font-size: 1.4rem;
    line-height: 1.4;
}

.search-result h2 a {
    color: #2bf !important;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.search-result h2 a:hover {
    color: #1af !important;
    transform: translateX(4px);
}

.search-result .meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: rgba(216, 222, 233, 0.6);
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.search-result .meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.search-result .meta .date::before {
    content: '📅';
    opacity: 0.8;
}

.search-result .meta .tags::before {
    content: '🏷️';
    opacity: 0.8;
}

.search-result .summary {
    color: rgba(216, 222, 233, 0.8);
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.no-results {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: rgba(216, 222, 233, 0.8);
    font-size: 1.1rem;
    animation: fadeIn 0.5s ease-out;
}

.no-results::before {
    content: '(｡•́︿•̀｡)';
    display: block;
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .search-container {
        margin: 1rem auto;
    }

    .search-box {
        padding: 1rem;
        border-radius: 20px;
    }

    #search-input {
        font-size: 1rem;
        padding: 0.8rem 1.2rem;
    }

    #search-button {
        width: 42px;
        height: 42px;
    }

    .search-result {
        padding: 1.2rem;
    }

    .search-result h2 {
        font-size: 1.2rem;
    }

    .search-result .meta {
        gap: 0.8rem;
    }

    .search-result .summary {
        font-size: 0.95rem;
    }
}

/* 友链样式 */
.friends-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.friend-link {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 15px;
    background-color: rgba(0, 0, 0, .25);
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    color: rgb(216, 222, 233);
}

.friend-link:hover {
    transform: translateY(-5px);
}

.friend-avatar {
    flex-shrink: 0;
    margin-right: 15px;
}

.friend-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.friend-info {
    flex-grow: 1;
}

.friend-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.1em;
}

.friend-info h3 a {
    color: #2bf !important;
    text-decoration: none;
}

.friend-info h3 a:hover {
    color: #1af !important;
}

.friend-info p {
    margin: 0;
    font-size: 0.9em;
    color: rgb(216, 222, 233);
    line-height: 1.4;
    white-space: normal;
    overflow: visible;
}

/* 友情链接样式 */
.links-container {
    padding: 20px;
}

.friend-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.friend-link-card {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.friend-link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.35);
}

.friend-link-avatar {
    flex-shrink: 0;
}

.friend-link-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.friend-link-info {
    flex-grow: 1;
    overflow: hidden;
}

.friend-link-info h3 {
    margin: 0 0 8px 0 !important;
    font-size: 1.1em !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.friend-link-info a {
    text-decoration: none;
    color: inherit;
}

.friend-link-info a:hover h3 {
    color: #2bf !important;
}

.friend-link-desc {
    margin: 0 !important;
    font-size: 0.9em !important;
    color: rgba(255, 255, 255, 0.7) !important;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.5 !important;
}

@media (max-width: 1300px) {
    .main {
        padding: 0 !important;
    }
    .cardw {
        padding: 0 !important;
        width: 100% !important;
    }
    .friend-links-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .friend-links-grid {
        grid-template-columns: 1fr;
    }
    .friend-link-card {
        padding: 12px;
    }
}

/* 分页样式 */
.pagination-container {
    margin-top: 60px;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease-out;
    width: 100%;
    display: flex;
    justify-content: center;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.pagination-numbers {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background-color: rgba(0, 0, 0, .25);
    color: rgb(216, 222, 233) !important;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.95em;
}

.page-number:hover {
    background-color: rgba(147, 112, 219, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 112, 219, 0.15);
    border-color: rgba(147, 112, 219, 0.3);
}

.page-number.current {
    background: linear-gradient(145deg, rgba(147, 112, 219, 0.25), rgba(147, 112, 219, 0.15));
    color: rgb(183, 157, 237) !important;
    font-weight: 600;
    border-color: rgba(147, 112, 219, 0.4);
    box-shadow: 0 0 15px rgba(147, 112, 219, 0.2);
    pointer-events: none;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    height: 40px;
    background-color: rgba(0, 0, 0, .35);
    color: rgb(216, 222, 233) !important;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
}

.pagination-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(147, 112, 219, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.pagination-btn:hover {
    background-color: rgba(147, 112, 219, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(147, 112, 219, 0.2);
    border-color: rgba(147, 112, 219, 0.3);
}

.pagination-btn:hover::before {
    transform: translateX(100%);
}

.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(40%);
}

.pagination-btn svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 1.5;
    transition: transform 0.3s ease;
}

.prev-btn:hover svg {
    transform: translateX(-3px);
}

.next-btn:hover svg {
    transform: translateX(3px);
}

.pagination-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(145deg, rgba(147, 112, 219, 0.15), rgba(147, 112, 219, 0.1));
    border-radius: 16px;
    color: rgb(216, 222, 233);
    font-weight: 500;
    border: 1px solid rgba(147, 112, 219, 0.2);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.current-page {
    color: rgb(183, 157, 237);
    font-weight: 600;
    font-size: 1.1em;
    text-shadow: 0 0 10px rgba(147, 112, 219, 0.3);
}

.separator {
    color: rgba(216, 222, 233, 0.4);
    font-weight: 300;
}

.total-pages {
    color: rgba(216, 222, 233, 0.7);
}

@media (max-width: 768px) {
    .pagination-container {
        margin: 40px auto;
        padding: 0 12px;
        width: 100%;
        box-sizing: border-box;
    }

    .pagination {
        gap: 8px;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .pagination-numbers {
        gap: 6px;
        order: 2;
        width: 100%;
        margin-top: 12px;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

    .page-number {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 0.9em;
    }
    
    .pagination-btn {
        padding: 0 15px;
        height: 36px;
    }
    
    .pagination-btn span {
        display: none;
    }
    
    .pagination-btn svg {
        margin: 0;
        width: 20px;
        height: 20px;
    }
}

.post-content a:has(img) {
    text-decoration: none !important;
    border-bottom: none !important;
}

.post-content a:has(img):hover {
    text-decoration: none !important;
    border-bottom: none !important;
}

.post-content a:has(img)::before {
    display: none !important;
}

.post-content a:has(img):hover {
    text-shadow: none !important;
}

.post-content a:has(img) {
    padding: 0 !important;
}

.card-description {
    margin: 0;
    font-size: 0.95em;
    line-height: 1.5;
    opacity: 0.9;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    transition: all 0.3s ease;
    overflow-y: auto;
    padding: 20px 0;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-header img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.mobile-menu-header h1 {
    color: #fff;
    font-size: 1.5em;
    margin: 10px 0;
}

.mobile-menu-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
    margin: 10px 0;
    line-height: 1.5;
}

.mobile-menu-nav {
    list-style: none;
    padding: 20px 0;
    margin: 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
}

.mobile-menu-nav li {
    width: 100%;
    box-sizing: border-box;
}

.mobile-menu-nav a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1em;
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-menu-nav a .icon-svg {
    flex-shrink: 0;
    margin-right: 12px;
    width: 20px;
    height: 20px;
}

.mobile-menu-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
}

.mobile-social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    margin-top: 10px;
}

.mobile-social-links a {
    color: rgba(255, 255, 255, 0.6) !important;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
}

.mobile-social-links a:hover {
    color: rgba(255, 255, 255, 0.9) !important;
    background: rgba(255, 255, 255, 0.15);
}

.mobile-social-links .icon-svg {
    width: 24px;
    height: 24px;
}

/* 当菜单打开时，主内容区域的模糊效果 */
.main {
    transition: filter 0.3s ease;
}

.mobile-menu.active ~ .main {
    filter: blur(5px);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    backdrop-filter: blur(5px);
}

.mobile-menu-overlay.active {
    display: block;
}