/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #1a1a2e;
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
}

/* 背景图片 */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/1755359106983_0H6ON.JPG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

/* 主容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 时间日期容器 */
.time-date-container {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.time {
    font-size: 48px;
    font-weight: 700;
    color: #000;
    text-shadow: 
        -1px -1px 0 #fff,
        1px -1px 0 #fff,
        -1px 1px 0 #fff,
        1px 1px 0 #fff;
    margin-bottom: 8px;
}

.date {
    font-size: 18px;
    color: #000;
    text-shadow: 
        -1px -1px 0 #fff,
        1px -1px 0 #fff,
        -1px 1px 0 #fff,
        1px 1px 0 #fff;
    opacity: 0.9;
}

/* 搜索容器 */
.search-container {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 99999;
}

/* 搜索框 */
.search-box {
    display: flex;
    align-items: center;
    width: 600px;
    max-width: 90vw;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 0 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search-box:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* 搜索引擎选择器 */
.search-engine-selector {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-right: 15px;
    padding: 8px 12px;
    border-radius: 20px;
    transition: background 0.2s ease;
    z-index: 99999;
}

.search-engine-selector:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-engine-selector img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    margin-right: 8px;
}

.dropdown-arrow {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.2s ease;
}

.search-engine-selector.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* 搜索引擎下拉菜单 */
.engine-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 160px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 99999;
    margin-top: 8px;
}

.engine-dropdown.hidden {
    display: none;
}

.engine-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    color: #333;
}

.engine-option:hover {
    background: rgba(0, 0, 0, 0.05);
}

.engine-option img {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    margin-right: 12px;
}

/* 搜索输入框 */
#searchInput {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 16px;
    padding: 0 15px;
}

#searchInput::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* 搜索按钮 */
.search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.8);
}

.search-button:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: scale(1.05);
}

/* 应用程序网格 */
.app-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* 小图标卡片 - 1x1 */
.app-card {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 16px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 90px;
    text-decoration: none;
    color: #fff;
}

.app-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.3);
}

.app-card .app-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    margin-bottom: 8px;
    object-fit: cover;
}

.app-card .app-name {
    font-size: 11px;
    text-align: center;
    line-height: 1.2;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    max-width: 100%;
    word-wrap: break-word;
}

/* 中图标卡片 - 2x1 */
.medium-card {
    grid-column: span 2;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 80px;
    text-decoration: none;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.medium-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.medium-card {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(255, 255, 255, 0.2);
}

.medium-card .card-content {
    position: relative;
    z-index: 1;
}

.medium-card .card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.medium-card .card-description {
    font-size: 12px;
    opacity: 0.8;
}

/* 大图标卡片 - 2x2 */
.large-card {
    grid-column: span 2;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 160px;
    text-decoration: none;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.large-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.large-card {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(255, 255, 255, 0.2);
}

.large-card .card-content {
    position: relative;
    z-index: 1;
}

.large-card .card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.large-card .card-description {
    font-size: 13px;
    opacity: 0.8;
    line-height: 1.4;
}

/* 超大图标卡片 - 4x2 */
.extra-large-card {
    grid-column: span 4;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 160px;
    text-decoration: none;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.extra-large-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.extra-large-card {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(255, 255, 255, 0.2);
}

.extra-large-card .card-content {
    position: relative;
    z-index: 1;
}

.extra-large-card .card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.extra-large-card .card-description {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.4;
}

/* 半宽长条卡片 - 占一格高度，宽度占一半（6列） */
.half-width-card {
    grid-column: span 6;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 18px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 90px;
    text-decoration: none;
    color: #fff;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(255, 255, 255, 0.2);
}

.half-width-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.half-width-card .card-content {
    position: relative;
    z-index: 1;
}

.half-width-card .card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.half-width-card .card-description {
    font-size: 13px;
    opacity: 0.85;
}

/* 磨砂文章列表卡片：与半宽卡同宽（6 列），正方形，上标题下链接列表 */
.article-feed-card {
    grid-column: span 6;
    display: flex;
    flex-direction: column;
    min-height: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    padding: 16px 18px;
    border-radius: 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.article-feed-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

.article-feed-header {
    flex-shrink: 0;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding-bottom: 12px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.article-feed-list {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 4px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.4) transparent;
}

.article-feed-list::-webkit-scrollbar {
    width: 6px;
}
.article-feed-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 999px;
}

.article-feed-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.article-feed-item:hover {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateX(2px);
}

.article-feed-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.2);
}

.article-feed-title {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== 首页：美化案例轮播（对齐备份站 Nav02 / zmxq.mk_pc.css） ===== */
.home-showcase-carousel {
    grid-column: span 12;
    min-width: 0;
}

.home-sf-carousel {
    position: relative;
    width: 100%;
}

.home-sf-stage {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
    overflow: visible;
}

.home-sf-frame {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    z-index: 3;
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(37, 216, 223, 0.85), rgba(205, 105, 201, 0.72), rgba(105, 205, 118, 0.78));
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.14);
    overflow: hidden;
    position: relative;
}

.home-sf-main-img {
    position: absolute;
    inset: 2px;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    z-index: 1;
    border-radius: 18px;
    object-fit: cover;
    pointer-events: none;
}

.home-sf-frame-pills {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    max-width: calc(100% - 20px);
    pointer-events: none;
}

.home-sf-pill {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    color: rgba(15, 23, 42, 0.92);
    background: rgba(255, 255, 255, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    white-space: nowrap;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.home-sf-pill:hover {
    background: rgba(255, 255, 255, 0.52);
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.home-sf-arrow {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(14px) saturate(170%);
    -webkit-backdrop-filter: blur(14px) saturate(170%);
    color: rgba(15, 23, 42, 0.9);
    cursor: pointer;
    font-size: 24px;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    z-index: 4;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
    transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.18s, box-shadow 0.18s;
    line-height: 1;
    padding: 0;
}

.home-sf-arrow:hover {
    transform: translateY(-50%) scale(1.05);
    background: rgba(255, 255, 255, 0.42);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
}

.home-sf-arrow-left {
    left: 10px;
}

.home-sf-arrow-right {
    right: 10px;
}

.home-sf-imgs {
    display: none !important;
}

.home-sf-preview {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: min(520px, 68%);
    aspect-ratio: 16 / 9;
    border: 0;
    padding: 2px;
    cursor: pointer;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(37, 216, 223, 0.9), rgba(205, 105, 201, 0.75), rgba(105, 205, 118, 0.8));
    box-shadow: 0 14px 42px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    z-index: 1;
}

.home-sf-preview-left {
    left: 0;
}

.home-sf-preview-right {
    right: 0;
}

.home-sf-preview-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.10);
}

.home-sf-preview-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(15, 23, 42, 0.92);
    font-size: 26px;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.70);
    backdrop-filter: blur(14px) saturate(170%);
    -webkit-backdrop-filter: blur(14px) saturate(170%);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
    pointer-events: none;
}

.home-sf-preview-left .home-sf-preview-btn {
    left: 12px;
}

.home-sf-preview-right .home-sf-preview-btn {
    right: 12px;
}

@media screen and (max-width: 900px) {
    .home-sf-frame {
        max-width: 92vw;
    }

    .home-sf-preview {
        display: none;
    }

    .home-sf-stage {
        padding: 0;
    }

    .home-sf-arrow {
        display: flex;
    }
}

/* 三等分长条卡片 - 占一格高度，宽度占三分之一（4列） */
.third-width-card {
    grid-column: span 4;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 80px;
    text-decoration: none;
    color: #fff;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(255, 255, 255, 0.2);
}

.third-width-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.third-width-card .card-content {
    position: relative;
    z-index: 1;
}

.third-width-card .card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.third-width-card .card-description {
    font-size: 12px;
    opacity: 0.8;
}

/* 内页布局 */
.page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding-right: 0;
}

.page-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.page-sidebar {
    position: fixed;
    right: clamp(12px, calc((100vw - 1000px) / 2 - 12px), 64px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.sidebar-box {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 72px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.25);
}

.sidebar-link {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1d2a32;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sidebar-link:hover {
    background: rgba(255,255,255,0.28);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.sidebar-link svg {
    width: 22px;
    height: 22px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar-divider {
    height: 1px;
    margin: 4px 6px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.article-card,
.download-card,
.detail-card {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.article-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.article-body {
    line-height: 1.7;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.article-body p + p {
    margin-top: 10px;
}

.download-card {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    align-items: center;
    gap: 16px;
}

.download-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.15);
}

.download-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.download-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.download-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
    min-width: 120px;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.08));
}

.detail-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.detail-card p {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
}

.detail-card img {
    width: 100%;
    border-radius: 10px;
    margin-top: 10px;
    object-fit: cover;
}

/* 抽屉式卡片 - 2x2 */
.drawer-card {
    grid-column: span 2;
    grid-row: span 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 160px;
}

.drawer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.drawer-card .drawer-mini-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px;
    transition: background 0.2s ease;
    cursor: pointer;
}

.drawer-card .drawer-mini-app:hover {
    background: rgba(255, 255, 255, 0.2);
}

.drawer-card .drawer-mini-app img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    margin-bottom: 4px;
    object-fit: cover;
}

.drawer-card .drawer-mini-app span {
    font-size: 10px;
    text-align: center;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.drawer-card .drawer-more {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.drawer-card .drawer-more:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 抽屉弹窗 */
.drawer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.drawer-modal.show {
    display: flex;
}

.drawer-modal-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 90vw;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.drawer-modal-header {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
}

.drawer-modal-header img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    margin-right: 12px;
}

.drawer-modal-header .drawer-title {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.drawer-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.drawer-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.drawer-modal-apps {
    padding: 20px;
    /* 约 3 行网格（常见 3 列时≈9 个入口），多出的在区域内滚动，避免弹窗把页面拉很长 */
    max-height: min(390px, calc(100vh - 220px));
    overflow-y: auto;
    overflow-x: hidden;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-content: start;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.35) transparent;
}

.drawer-modal-apps::-webkit-scrollbar {
    width: 8px;
}

.drawer-modal-apps::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 999px;
}

.drawer-modal-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #333;
}

.drawer-modal-app:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.drawer-modal-app img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    margin-bottom: 8px;
    object-fit: cover;
}

.drawer-modal-app span {
    font-size: 12px;
    text-align: center;
    line-height: 1.2;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 20px 10px;
    }
    
    .time {
        font-size: 36px;
    }
    
    .date {
        font-size: 16px;
    }
    
    .search-box {
        width: 100%;
        max-width: 100%;
    }
    
    .app-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 12px;
    }
    
    .app-card {
        height: 70px;
        padding: 12px 6px;
    }
    
    .app-card .app-icon {
        width: 28px;
        height: 28px;
    }
    
    .app-card .app-name {
        font-size: 10px;
    }
    
    .medium-card, .large-card, .drawer-card, .half-width-card, .third-width-card,
    .article-feed-card {
        grid-column: span 2;
    }

    .home-showcase-carousel {
        grid-column: span 6;
    }
    
    .extra-large-card {
        grid-column: span 4;
    }
    
    .large-card, .drawer-card {
        grid-row: span 2;
        height: 140px;
    }

    .page-layout {
        padding-right: 0;
    }
    
    .page-sidebar {
        position: fixed;
        right: 12px;
        bottom: 24px;
        top: auto;
        transform: none;
    }
}

@media (max-width: 480px) {
    .time {
        font-size: 28px;
    }
    
    .date {
        font-size: 14px;
    }
    
    .search-box {
        height: 50px;
        padding: 0 15px;
    }
    
    .search-engine-selector {
        padding: 6px 8px;
        margin-right: 10px;
    }
    
    .search-engine-selector img {
        width: 20px;
        height: 20px;
    }
    
    #searchInput {
        font-size: 14px;
    }
    
    .search-button {
        width: 36px;
        height: 36px;
    }
    
    .app-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .extra-large-card,
    .half-width-card,
    .third-width-card,
    .article-feed-card {
        grid-column: span 4;
    }

    .home-showcase-carousel {
        grid-column: span 4;
    }

    .download-card {
        grid-template-columns: 60px 1fr;
        grid-auto-rows: auto;
        row-gap: 12px;
    }
    
    .btn-primary {
        width: 100%;
        justify-content: center;
    }
    
    .copyright-card {
        margin: 30px auto 0 auto;
        padding: 16px;
    }
    
    .copyright-text {
        font-size: 13px;
    }
}

/* ===== 页尾扩展（分类导航卡 / 小贴士 / 友链）===== */
.home-bottom-blocks {
    max-width: 1000px;
    margin: 36px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.home-bottom-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.home-block {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.home-block-title {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px 0;
    letter-spacing: 0.04em;
}

.home-block-desc {
    margin: 0 0 14px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.45;
}

.home-hub-card {
    padding: 20px 20px 22px;
}

.home-hub-card-top {
    grid-column: span 12;
    margin-top: 2px;
}

.home-hub-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin-bottom: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}

.home-hub-tabs::-webkit-scrollbar {
    height: 6px;
}

.home-hub-tabs::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 999px;
}

.home-hub-note {
    margin: -4px 0 14px 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.45;
}

.home-hub-tab {
    flex: 0 0 auto;
    min-width: 118px;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.home-hub-tab:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.home-hub-tab:nth-child(1) {
    background: linear-gradient(135deg, rgba(37, 216, 223, 0.34), rgba(73, 121, 255, 0.26));
}

.home-hub-tab:nth-child(2) {
    background: linear-gradient(135deg, rgba(255, 147, 65, 0.34), rgba(255, 98, 98, 0.24));
}

.home-hub-tab:nth-child(3) {
    background: linear-gradient(135deg, rgba(88, 205, 118, 0.32), rgba(37, 216, 223, 0.22));
}

.home-hub-tab:nth-child(4) {
    background: linear-gradient(135deg, rgba(205, 105, 201, 0.34), rgba(133, 92, 255, 0.26));
}

.home-hub-tab:nth-child(5) {
    background: linear-gradient(135deg, rgba(255, 199, 95, 0.34), rgba(255, 146, 84, 0.24));
}

.home-hub-tab:nth-child(6) {
    background: linear-gradient(135deg, rgba(111, 173, 255, 0.34), rgba(69, 219, 189, 0.24));
}

.home-hub-tab:nth-child(7) {
    background: linear-gradient(135deg, rgba(255, 129, 183, 0.34), rgba(151, 122, 255, 0.24));
}

.home-hub-tab.is-active {
    border-color: rgba(255, 255, 255, 0.8);
    color: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    filter: saturate(1.15) brightness(1.08);
}

.home-hub-tab:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.65);
    outline-offset: 2px;
}

.home-hub-panels {
    min-height: 0;
}

.home-hub-panel:not(.is-active) {
    display: none;
}

.home-hub-panel.is-active {
    display: block;
}

.home-hub-links {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    align-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}

.home-hub-links::-webkit-scrollbar {
    height: 6px;
}

.home-hub-links::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 999px;
}

.home-rail-chip {
    flex: 0 0 auto;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    transition: background 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
}

.home-rail-chip:hover {
    background: rgba(255, 255, 255, 0.26);
    transform: translateY(-1px);
}

.home-insight-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 12px;
}

.home-insight-card {
    margin: 0;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.home-insight-icon {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 6px;
}

.home-insight-h {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
}

.home-insight-p {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
}

.home-link-row {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px 6px;
}

.home-link-row a {
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

.home-link-row a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.home-link-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
}

.back-to-top {
    position: fixed;
    right: clamp(16px, 3vw, 28px);
    bottom: clamp(20px, 5vw, 36px);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    z-index: 1500;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.2s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: rgba(255, 255, 255, 0.28);
}

@media (max-width: 768px) {
    .home-insight-cards {
        grid-template-columns: 1fr;
    }

    .home-bottom-blocks {
        padding: 0 10px;
        margin-top: 28px;
    }
}

/* 版权展示卡片 */
.copyright-card {
    max-width: 1000px;
    margin: 40px auto 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.copyright-text {
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* 工具详情页视觉升级 */
body.tool-page .download-card {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid transparent;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)),
        linear-gradient(135deg, #1ec9ff, #c851ff, #58d68d);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.14);
}

/* 文章页：与下载卡同款外观，无第三列下载按钮 */
body.tool-page .download-card.download-card--article {
    grid-template-columns: 72px 1fr;
}

body.tool-page .download-title {
    display: inline-flex;
    width: fit-content;
    padding: 6px 14px;
    border-radius: 999px;
    color: #18202a;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-align: left;
    background: #fff;
    border: 2px solid rgba(24, 32, 42, 0.35);
}

body.tool-page .download-subtitle {
    color: #3f4c59;
    font-size: 15px;
    font-weight: 600;
}

body.tool-page .btn-primary {
    border: 1px solid rgba(53, 68, 85, 0.25);
    background: rgba(255, 255, 255, 0.78);
    color: #24313d;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.03em;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

body.tool-page .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

body.tool-page .detail-card {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 16px 18px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.96);
    border: 2px solid transparent;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.96)),
        linear-gradient(135deg, rgba(37, 216, 223, 0.9), rgba(205, 105, 201, 0.8), rgba(105, 205, 118, 0.85));
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

body.tool-page .detail-card h3 {
    width: fit-content;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 12px;
    background: #fff;
    border: 2px solid rgba(24, 32, 42, 0.35);
    color: #202833;
    font-size: 20px;
}

body.tool-page .detail-card p {
    color: #2f3c49;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.75;
}

body.tool-page .detail-card img {
    width: 100%;
    max-width: none;
    margin: 0;
    display: block;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
    cursor: zoom-in;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

body.tool-page .detail-image-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 12px 0 14px;
}

/* 文章模板：说明区图片单列，每张宽约卡片 2/3 居中（不影响工具下载页双列） */
body.tool-page.tool-page--article .detail-image-grid {
    grid-template-columns: 1fr;
}

body.tool-page.tool-page--article .detail-card > img,
body.tool-page.tool-page--article .detail-image-grid img {
    width: 66.666%;
    max-width: 66.666%;
    margin-left: auto;
    margin-right: auto;
}

body.tool-page .detail-card img:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.image-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(8, 13, 20, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 3000;
    padding: 24px;
}

.image-lightbox.show {
    display: flex;
}

.image-lightbox-img {
    max-width: min(92vw, 1200px);
    max-height: 86vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    object-fit: contain;
    background: #fff;
}

.image-lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 768px) {
    body.tool-page .download-card {
        max-width: 100%;
    }

    body.tool-page .download-card.download-card--article {
        grid-template-columns: 60px 1fr;
    }

    body.tool-page .download-title {
        font-size: 18px;
    }

    body.tool-page .detail-card {
        max-width: 100%;
    }

    body.tool-page .detail-card p {
        font-size: 16px;
    }

    body.tool-page .detail-card img {
        width: 100%;
    }

    body.tool-page.tool-page--article .detail-card > img,
    body.tool-page.tool-page--article .detail-image-grid img {
        width: 66.666%;
        max-width: 66.666%;
    }

    body.tool-page .detail-image-grid {
        grid-template-columns: 1fr;
    }

    body.tool-page.tool-page--article .detail-image-grid {
        grid-template-columns: 1fr;
    }
}

