html {
    margin: 0;
    padding: 0;
    height: 100%;
}


body,
html {
    display: flex;
    margin: 0;
    flex-direction: column;
    align-items: center;
}

.background {
    width: 100%;
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;

}

.container {
    margin: 6vh;
    width: 1200px;
    text-align: center;
    position: relative;
    border-radius: 15px;
    background: #fbfbfb;
    box-shadow: 6px 6px 10px 0px #5d585875;
}

header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-radius: 15px 15px 0 0;
    padding: 10px 20px;
}

.night-mode header {
    background-color: #3d3d3d;
    color: #eee;
}

.night-mode .clock-container {
    color: #fff;
}

.night-mode .btn-wap {
    color: #fff;
}

.night-mode .site-left-column {
    background: #353535;
}

.night-mode #site_keyword span {
    background: #5b5b5b;
}

.night-mode .site-right-logo {
    box-shadow: 0 0 8px 2px #3f3f3f;
}

.bg-preview {
    margin: 10px;
    width: 25px;
    height: 25px;
    cursor: pointer;
}

.logo-nav {
    display: flex;
    align-items: center;
}

.logo {
    height: 46px;
}

.right-content {
    display: flex;
    align-items: center;
}



.reminder {
    font-size: 14px;
    color: #3198ff;
}

.yiyan {
    margin: 2rem 1rem;
    color: #797979;
    font-size: 12px;
}

html.night-mode {
    background-color: #282828;
    color: #fff;
}

html.night-mode .container {
    background-color: #3d3d3d;
}

html.night-mode .menu li a {
    color: #fff;
}

html.night-mode .sou .search-container .wd {
    color: #ffffffc4;
}

html.night-mode .sou .search-container .wd:focus {
    color: #000;
}

html.night-mode .breadcrumb {
    background-color: #444;
}

html.night-mode .active a {
    color: #fff;
}

html.night-mode .breadcrumb-item::after {
    background-color: #fff;
}

html.night-mode .breadcrumb-item a {
    color: #bbb;
}

html.night-mode .btn-block {
    background-color: #00000070;
    box-shadow: 0 1px 0 1px rgba(51, 51, 51, .72) !important;
}

html.night-mode .btn-block:hover {
    background-color: #000;
}

html.night-mode .breadcrumb.fixed-top {
    background-color: #000;
    box-shadow: 0 1px 4px 1px rgba(108, 108, 108, .48) !important;
}

button,
form,
input {
    margin: 0;
    padding: 0;
    outline: 0;
    border: none;
    background: 0 0;
}

.sou {
    position: relative;
    margin: 0 auto;
    width: calc(100% - 60px);
    max-width: 680px;
    min-width: 320px;
}

.sou .search-container {
    position: relative;
    display: block;
    margin: 30px auto 30px;
    width: 100%;
}

.sou .search-container .wd {
    display: block;
    padding-left: 1em;
    width: 100%;
    height: 50px;
    border: 1px solid #ddd;
    border-radius: 25px;
    background: #ffffff2e;
    text-indent: 50px;
    font-size: 17px;
    line-height: 100%;
    transition: .3s all;
}

.lg {
    z-index: 1000;
}

.sou .search-container .lg svg {
    position: absolute;
    top: 12px;
    left: 15px;
    display: block;
    overflow: hidden;
    width: 25px;
    height: 25px;
    cursor: pointer;
}

.sou .search-container .lg img {
    position: absolute;
    top: 12px;
    left: 25px;
    display: block;
    overflow: hidden;
    width: 25px;
    height: 25px;
    cursor: pointer;
}

.sou .search-container .wd:focus {
    border-color: #fff;
    background: #ffffffb2;
    box-shadow: 0 0 15px 0 rgba(32, 33, 36, .2);
    color: #000;
}

.sou .search-container button {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 10;
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #ddd;
    font-size: 22px;
    line-height: 22px;
    cursor: pointer;
}

.sou #word {
    position: absolute;
    top: 65px;
    left: 20px;
    z-index: 500;
    display: none;
    overflow: hidden;
    padding: 15px;
    width: calc(100% - 70px);
    border-radius: 10px;
    background: #ffffffb0;
    text-align: left;
    font-size: 16px;
    line-height: 30px;
    -webkit-backdrop-filter: saturate(180%) blur(6px);
    backdrop-filter: saturate(180%) blur(6px);
}

.sou #word li {
    margin: 5px;
    color: #555;
    list-style: none;
    cursor: pointer;
}

#word li:hover {
    background-color: #ddd;
}

.hide {
    display: none;
}


.clock-container {
    display: flex;
    text-align: center;
    flex-direction: column;
    align-items: center;
    margin: 1rem;
    font-size: 1.2rem;
    color: #2f2f2f;
}

.clock-face {
    margin-bottom: 5px;
    font-size: 2.5em;
}

.clock-face span {
    font-size: 2rem;
}

.clock-details {
    font-size: 1em;
}

.date-line {
    display: flex;
    font-size: 1.1em;
    justify-content: space-between;
    align-items: center;
}

.date-part {
    display: inline-block;
    letter-spacing: 2px;
    margin: 0 8px;
}

.breadcrumb {
    display: flex;
    overflow-x: auto;
    margin: 15px;
    padding: 10px 15px;
    border-radius: 8px;
    background-color: #f5f5f582;
    list-style: none;
    white-space: nowrap;
    font-size: 14px;
}

.breadcrumb-item {
    position: relative;
    text-align: center;
    flex-shrink: 0;
}

.breadcrumb-item span {
    display: block;
    padding: 8px;
    color: #828282;
}

.breadcrumb-item a {
    display: block;
    padding: 8px;
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-item a:hover {
    color: #54a2ef;
}

.breadcrumb-item {
    position: relative;
    text-align: center;
}

.breadcrumb-item::after {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    border-radius: 10px;
    background-color: #000;
    content: "";
    transition: width .3s ease;
}

.breadcrumb-item.active::after {
    left: calc(50% - 40%);
    width: 80%;
}

@media (max-width:600px) {
    .breadcrumb {
        display: flex;
        scroll-snap-type: x mandatory;
    }

    .breadcrumb-item {
        text-align: left;
        scroll-snap-align: start;
        flex: 0 0 auto;
    }

    .breadcrumb-item:after {
        margin: 5px 0;
    }
}

::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #888;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

html {
    scrollbar-width: thin;
}

html {
    background-color: #e7e6e1;
    -ms-overflow-style: scrollbar;
}

::-ms-track {
    background: #f1f1f1;
    color: #f1f1f1;
}

::-ms-thumb {
    border-radius: 10px;
    background: #888;
}

::-ms-thumb:hover {
    background: #555;
}

.nk-content {
    padding: 30px 10px;
}

.container,
.container-fluid,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
    margin-left: auto;
}

.card {
    position: relative;
}

.card-inner {
    padding: 1.25rem;
}

.nya-title {
    position: absolute;
    top: -15px;
    padding: 5px 18px;
    color: #888;
    font-size: 1rem;
    margin: 1rem 0 0;
}

.nya-title::before {
    position: absolute;
    left: 0;
    width: 4px;
    height: 70%;
    border-radius: 10px;
    background: #888;
    content: "";
}

.progress-rating {
    display: flex;
    align-items: center;
}

.nk-menu-text {
    display: inline-block;
    flex-grow: 1;
}

.font-weight-bold,
.fw-bold {
    font-weight: 700 !important;
}

.row {
    display: flex;
    margin-right: -10px;
    margin-bottom: 20px;
    margin-left: -10px;
    flex-wrap: wrap;
}

.g-2>div,
.g-2>li {
    padding: .375rem !important;
}

.col-6 {
    max-width: 12.5%;
    flex: 0 0 12.5%;
}



.btn-block {
    overflow: hidden;
    background-color: #fff0;
    box-shadow: 0 1px 0 1px rgba(118, 122, 128, .15) !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-block:hover {
    background-color: #0000001c;
}

*,
::after,
::before {
    box-sizing: border-box;
}

.btn-outline-light,
.btn-outline-lighter,
.dt-buttons .btn-secondary {
    color: #526484;
}

.btn-outline-light,
.dt-buttons .btn-secondary {
    border-color: #dbdfea;
}

.btn-xl {
    padding: .6rem .2rem;
    border-radius: 5px;
    font-size: .9375rem;
    line-height: 1.25rem;
}

.btn,
.dual-listbox .dual-listbox__button {
    position: relative;
}

.btn-block {
    display: block;
    width: 100%;
}


.btn,
.dual-listbox .dual-listbox__button {
    color: #373737;
    text-align: left;
    font-size: .8125rem;
}

a {
    transition: color .4s, background-color .4s, border .4s, box-shadow .4s;
}

a {
    background-color: transparent;
    color: #798bff;
    text-decoration: none;
}

.link-icon,
.tool-icon {
    margin: 0 5px;
}

.link-icon img,
.tool-icon img,
svg.icon {
    width: 54px;
    height: 54px;
    margin-right: 1rem;
}

.active a {
    color: #000;
}

.footer-inner {
    font-size: .7rem;
    padding: 10px 20px;
    margin-top: 20px;
}

.more {
    font-size: 20px;
    color: #333;
    cursor: pointer;
    padding: 0;
    background: none;
    border: none;
}

html.night-mode .more {
    color: #d7d7d7;
}

.dual-listbox .dual-listbox__button,
html.night-mode .btn {
    color: #d7d7d7;
}

.breadcrumb.fixed-top {
    position: fixed;
    top: -15px;
    z-index: 999;
    overflow-x: auto;
    background-color: #fff;
    box-shadow: 0 1px 4px 1px rgba(168, 168, 168, .72) !important;
    width: 1110px;
}



.dropdown {
    position: relative;
    display: inline-block;
    margin-right: 10px;
    width: 20px;
    height: 20px;
}

.dropbtn {
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 100;
    display: none;
    min-width: 150px;
    border-radius: 5px;
    background-color: #f9f9f9;
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, .2);
}

.dropdown-content a {
    display: flex;
    padding: 10px 15px;
    color: #000;
    text-align: left;
    text-decoration: none;
    align-items: center;
}

.dropdown-content a:hover {
    border-radius: 5px;
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

html.night-mode .dropdown-content {
    background-color: #444;
    box-shadow: 0 1px 4px 0 rgba(9, 9, 9, .19);
}

html.night-mode .dropdown-content a {
    color: #fff;
}

html.night-mode .dropdown-content a:hover {
    background-color: #312e2e;
}

.tip-text {
    position: absolute;
    bottom: 100%;
    left: 1.2vh;
    z-index: 1;
    visibility: hidden;
    /*margin-left:-80px;*/
    padding: 5px;
    width: 160px;
    border-radius: 6px;
    background-color: #555;
    color: #fff;
    text-align: center;
    opacity: 0;
    transition: opacity .3s, visibility 0s .3s, bottom .3s;
    font-size: 14px;
}

.tip-text::after {
    position: absolute;
    top: 110%;
    left: 5%;
    margin-top: -5px;
    border-color: #555 transparent transparent transparent;
    border-style: solid;
    border-width: 8px;
    content: ''
}

.tip-container:hover .tip-text {
    bottom: calc(100% + 1px);
    visibility: visible;
    opacity: 1;
    transition: opacity .3s, bottom .3s
}

html.night-mode .tip-text {
    background-color: #d7d7d7;
    color: #000;
}

html.night-mode .tip-text::after {
    border-color: #d7d7d7 transparent transparent transparent;
}

.site-container {
    display: flex;
    padding: 1rem;
    width: 100%
}

.site-left-column {
    width: 100%;
    background: #ffffffb3;
    border-radius: 10px;
    padding: 10px;
    margin-right: 15px;
}

.site-right-column {
    width: 70%;
}

.site-info {
    text-align: left
}

.site-right-nav,
.site-right-nav a {
    overflow: hidden;
    color: #888;
    text-overflow: ellipsis;
    white-space: nowrap
}

p#site_keyword {
    display: flex;
    flex-wrap: wrap;
}

p#site_keyword span {
    padding: 2px 6px;
    background: #afb5b7;
    color: #fff;
    border-radius: 5px;
    font-size: 12px;
    margin: 3px;
}

.site-right-logo {
    float: left;
    max-width: 88px;
    aspect-ratio: 1;
    padding: 2px;
    border-radius: 10px;
    background: #f9f9f9;
    box-shadow: 0 0 8px 2px #ededed;
}

.site-right-logo img,
.site-right-logo svg {
    width: 100%;
    height: 100%
}

.site-right-title {
    display: flex;
    padding: 3px 20px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.site-right-url {
    margin: 15px 0;
    display: flex;
    justify-content: center;
    flex-direction: row;
    flex-wrap: nowrap;
}

.urls-tools-item {
    margin: 0 5px;
}

.site-right-title .web_name {
    font-size: 1.5rem;
    display: -webkit-box;
    overflow: hidden;
    max-width: 100%;
    font-weight: 500;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    margin: 0;
}

p.url_description {
    font-size: 14px;
    color: #666;
}

.urls-tools-btn {
    display: inline-block;
    margin-right: 15px;
    padding: 8px 12px;
    font-size: 15px;
    border-color: #8a8a8a26;
    border-radius: 5px;
    background-color: #8a8a8a26;
    color: #666666;
}

.urls-tools-btn i {
    margin-left: 0.5rem;
}

.btn-arrow {
    background: linear-gradient(40deg, #54a2ef, #75b6f7);
    color: #fff
}

.urls-tools-qr #code {
    position: absolute;
    z-index: 10;
    display: none;
    padding: 5px;
    width: 110px;
    height: 110px;
    border-radius: 5px;
    background: #ffffff
}

.urls-tools-qr:hover #code {
    display: block
}

.dh-entry-title {
    color: #465169
}

.dh-entry-tips {
    margin: 1px;
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .07) !important;
    color: #b52020;
    font-size: 14px
}

.dh-entry-xinxi {
    font-size: .9em
}

.xinxi-text-1 {
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    letter-spacing: 1px;
}

.xinxi-text-2 {
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    letter-spacing: 1px;
    font-size: 16px;
}

.xinxi-text-3 {
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    letter-spacing: 1px;
    text-indent: 2rem;
    font-weight: 500;
    margin-bottom: 2rem;
}


.nav_path {
    display: flex;
    align-items: center;
}

.lazyload {
    opacity: 0.5;
    transition: opacity 0.5s ease-in-out;
}

.lazyloaded {
    opacity: 1;
}

p.notic {
    color: #888;
}

svg.menu_icon {
    width: 22px;
    height: 22px;
    margin-right: 0.5rem;
}

.path_tag {
    overflow: hidden;
    margin: 5px;
    font-size: 15px;
}

.pathi {
    margin: 0 5px;
}

.site-head-info {
    margin-top: 12px;
    display: flex;
    align-items: center;
}

.site_info_warp {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width:1300px) {
    .col-6 {
        max-width: 25%;
        flex: 0 0 25%;
    }

    #bg-selector {
        display: none;
    }

    .site-container {
        padding: 0 10px
    }



    .site-left-column {
        width: 100%
    }



    .dh-entry-tips {
        margin: 10px
    }

    .urls-tools-btn {
        margin-right: 0
    }

    .container {
        width: 760px;
    }

    .breadcrumb.fixed-top {
        margin-right: auto;
        margin-left: auto;
        width: 700px;
    }
}

@media (max-width:768px) {
    .site-left-column {
        margin: 15px 0;
        padding: 2%;
    }

    .site-right-column {
        padding: 2%;
        width: 90%;
        margin: 15px auto;
    }

    .site-container {
        display: flex;
        flex-direction: column;
    }

    .container {
        margin: 0;
        padding: 0;
        width: 100%;
        border-radius: 0;
        box-shadow: none;
        background: #f9f9f9;
        min-height: 100vh
    }

    header {
        border-radius: 0;
        background: #fff;
        padding: 5px 10px;
    }

    body,
    html {
        width: 100%;
        background-color: #fff;
        display: block;
    }

    html.night-mode body {
        background-color: #171717;
    }

    .site_info_warp {
        display: flex;
        flex-direction: column;
    }

    .col-6 {
        max-width: 33.33333%;
        flex: 0 0 33.33333%;
    }

    .urls-tools-qr {
        display: none;
    }

    nav {
        display: flex;
        justify-content: center;
    }

    .breadcrumb.fixed-top {
        margin-right: auto;
        margin-left: auto;
        width: 90%;
    }

    .btn-xl {
        padding: .625rem 2rem;
        border-radius: 5px;
        font-size: 1.125rem;
        line-height: 2rem;
    }
}

@media (max-width:640px) {
    .sou .search-container .wd:focus {
        border-color: #ccc;
        background: #f1f1f1;
        box-shadow: none;
    }

    .sou .search-container button {
        border-radius: 25px;
    }

    .sou ul li {
        width: 100px;
        text-indent: 30px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion:reduce) {

    .btn,
    .dual-listbox .dual-listbox__button {
        transition: none;
    }
}

@media (prefers-color-scheme:dark) {
    .sou .search-container .wd:focus {
        border: 1px solid #162035;
        background: #293550;
    }

    .sou .search-container .wd {
        border: 1px solid #293550;
        color: #bbb;
    }

    .sou #word {
        border: 15px solid #293550;
        background: #293550;
    }

    .sou #word .click_work {
        color: #89b;
    }
}

/* 主导航样式 */
.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0 20px;
    padding: 0;
}

.main-nav li {
    margin: 0 10px;
}

.main-nav .nav-link {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.main-nav .nav-link:hover {
    background-color: #f0f0f0;
}

.main-nav .nav-link.active {
    background-color: #54a2ef;
    color: white;
}

/* 夜间模式导航样式 */
html.night-mode .main-nav .nav-link {
    color: #ddd;
}

html.night-mode .main-nav .nav-link:hover {
    background-color: #555;
}

html.night-mode .main-nav .nav-link.active {
    background-color: #54a2ef;
    color: white;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    /* 可以添加移动端汉堡菜单样式 */
}

.title-nav h1 {
    font-size: 24px;
    font-weight: 500;
}

/* ===== 新版网站详情页样式 ===== */

/* 主要内容区域 */
.site-main-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* 封面图区域 */
.site-cover-section {
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.site-cover-image {
    position: relative;
    height: 400px;
    overflow: hidden;
    width: 100%;
}

.site-cover-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.site-cover-image:hover img {
    transform: scale(1.05);
}

.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.cover-content {
    text-align: center;
    color: white;
    max-width: 100%;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.site-logo-large {
    margin-bottom: 20px;
}

.site-logo-large img,
.site-logo-large svg {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}

.site-title-large {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.site-desc-large {
    font-size: 1.2rem;
    margin-bottom: 25px;
    opacity: 0.9;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.btn-visit-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #54a2ef 0%, #75b6f7 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(84, 162, 239, 0.4);
    white-space: nowrap;
}

.btn-visit-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(84, 162, 239, 0.6);
    color: white;
}

/* 信息卡片区域 */
.site-info-cards {
    display: grid;
    gap: 25px;
    width: 100%;
}

.site-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.site-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-header {
    padding: 20px 25px 0;
    box-sizing: border-box;
}

.card-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.card-header h3 i {
    color: #54a2ef;
    flex-shrink: 0;
}

.card-body {
    padding: 20px 25px 25px;
    box-sizing: border-box;
}

/* 面包屑导航 */
.site-breadcrumb {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.site-breadcrumb a {
    color: #54a2ef;
    text-decoration: none;
}

.site-breadcrumb a:hover {
    text-decoration: underline;
}

.site-breadcrumb i {
    margin: 0 8px;
    color: #ccc;
}

/* 网站头部信息 */
.site-header-info {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    width: 100%;
    box-sizing: border-box;
}

.site-logo-wrapper {
    flex-shrink: 0;
}

.site-logo-wrapper img,
.site-logo-wrapper svg {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
}

.site-title-wrapper {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.site-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin: 0 0 15px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* 关键词标签 */
.site-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.keyword-tag {
    padding: 4px 12px;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    color: #54a2ef;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(84, 162, 239, 0.2);
    white-space: nowrap;
    word-break: break-all;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 操作按钮 */
.site-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.btn-visit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #54a2ef 0%, #75b6f7 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-visit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(84, 162, 239, 0.4);
    color: white;
}

.btn-qr-wrapper {
    position: relative;
    flex-shrink: 0;
}

.btn-qr {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-qr:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.qr-popup {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 10px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1000;
}

.qr-popup::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.qr-popup img {
    width: 120px;
    height: 120px;
    border-radius: 5px;
}

/* 功能亮点卡片 */
.features-card {
    border-left: 4px solid #ffc107;
}

.features-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    white-space: pre-wrap;
}

/* 作者点评卡片 */
.review-card {
    border-left: 4px solid #28a745;
}

.review-content {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.review-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    white-space: pre-wrap;
    box-sizing: border-box;
}

.review-text::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 3rem;
    color: #28a745;
    font-family: serif;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #28a745;
    font-weight: 500;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 网页快照卡片 */
.snapshot-card {
    border-left: 4px solid #17a2b8;
}

.snapshot-wrapper {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.snapshot-image {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    cursor: pointer;
    display: block;
    max-width: 100%;
    object-fit: contain;
}

.snapshot-image:hover {
    transform: scale(1.02);
}

/* 夜间模式样式 */
html.night-mode .site-card {
    background: #3d3d3d;
    color: #eee;
}

html.night-mode .card-header h3 {
    color: #eee;
}

html.night-mode .site-title {
    color: #eee;
}

html.night-mode .site-description {
    color: #ccc;
}

html.night-mode .site-breadcrumb {
    color: #aaa;
}

html.night-mode .keyword-tag {
    background: rgba(84, 162, 239, 0.2);
    color: #75b6f7;
    border-color: rgba(84, 162, 239, 0.3);
}

html.night-mode .btn-qr {
    background: #555;
    border-color: #666;
    color: #ccc;
}

html.night-mode .btn-qr:hover {
    background: #666;
    border-color: #777;
}

html.night-mode .qr-popup {
    background: #444;
}

html.night-mode .qr-popup::before {
    border-bottom-color: #444;
}

html.night-mode .review-text {
    background: #555;
    color: #ddd;
}

html.night-mode .features-content {
    color: #ddd;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .site-main-content {
        padding: 10px;
        margin: 0;
        width: 100%;
    }
    
    .site-cover-image {
        height: 200px;
    }
    
    .site-title-large {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .site-desc-large {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .cover-content {
        padding: 15px;
    }
    
    .site-logo-large img,
    .site-logo-large svg {
        width: 60px;
        height: 60px;
    }
    
    .btn-visit-large {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .site-header-info {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .site-logo-wrapper {
        align-self: center;
    }
    
    .site-logo-wrapper img,
    .site-logo-wrapper svg {
        width: 60px;
        height: 60px;
    }
    
    .site-title {
        font-size: 1.4rem;
        text-align: center;
    }
    
    .site-description {
        font-size: 0.9rem;
        text-align: center;
    }
    
    .site-keywords {
        justify-content: center;
    }
    
    .site-actions {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .btn-visit,
    .btn-qr {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
    
    .card-header {
        padding: 15px 15px 0;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .card-header h3 {
        font-size: 1.1rem;
    }
    
    .features-content,
    .review-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .review-text {
        padding: 15px;
    }
    
    .review-text::before {
        font-size: 2rem;
        top: -5px;
        left: 10px;
    }
    
    .site-breadcrumb {
        font-size: 12px;
        text-align: center;
    }
    
    .qr-popup {
        left: 50%;
        transform: translateX(-50%);
        margin-top: 5px;
    }
}

@media (max-width: 480px) {
    .site-main-content {
        padding: 5px;
    }
    
    .site-cover-image {
        height: 180px;
    }
    
    .site-title-large {
        font-size: 1.3rem;
    }
    
    .site-desc-large {
        font-size: 0.8rem;
    }
    
    .cover-content {
        padding: 10px;
    }
    
    .site-logo-large img,
    .site-logo-large svg {
        width: 50px;
        height: 50px;
    }
    
    .btn-visit-large {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .site-title {
        font-size: 1.2rem;
    }
    
    .site-description {
        font-size: 0.8rem;
    }
    
    .keyword-tag {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .card-header {
        padding: 10px 10px 0;
    }
    
    .card-body {
        padding: 10px;
    }
    
    .card-header h3 {
        font-size: 1rem;
    }
    
    .features-content,
    .review-text {
        font-size: 0.8rem;
    }
    
    .review-text {
        padding: 10px;
    }
    
    .btn-visit,
    .btn-qr {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

/* 相关推荐样式 */
.related-sites-card {
    margin-top: 20px;
}

.related-subtitle {
    color: #666;
    font-size: 0.9rem;
    margin: 5px 0 0 0;
    font-weight: normal;
}

.related-sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.related-site-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
}

.related-site-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

.related-site-link {
    display: flex;
    align-items: center;
    padding: 15px;
    text-decoration: none;
    color: inherit;
    gap: 12px;
}

.related-site-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #f8f9fa;
}

.related-site-icon img,
.related-site-icon svg {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
}

.related-site-info {
    flex: 1;
    min-width: 0;
}

.related-site-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-site-desc {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-site-visit {
    flex-shrink: 0;
    color: #007bff;
    font-size: 1.1rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.related-site-item:hover .related-site-visit {
    opacity: 1;
}

.related-more {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.btn-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-more:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
    color: white;
    text-decoration: none;
}

/* 夜间模式适配 */
html.night-mode .related-site-item {
    background: #2d3748;
    border-color: #4a5568;
}

html.night-mode .related-site-name {
    color: #e2e8f0;
}

html.night-mode .related-site-desc {
    color: #a0aec0;
}

html.night-mode .related-subtitle {
    color: #a0aec0;
}

html.night-mode .related-site-icon {
    background: #4a5568;
}

html.night-mode .related-more {
    border-color: #4a5568;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .related-sites-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .related-site-link {
        padding: 12px;
    }
    
    .related-site-name {
        font-size: 0.95rem;
    }
    
    .related-site-desc {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .related-sites-grid {
        gap: 10px;
    }
    
    .related-site-link {
        padding: 10px;
        gap: 10px;
    }
    
    .related-site-icon {
        width: 35px;
        height: 35px;
    }
    
    .related-site-icon img,
    .related-site-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .related-site-name {
        font-size: 0.9rem;
    }
    
    .related-site-desc {
        font-size: 0.75rem;
    }
    
    .btn-more {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}