@layer utilities {
    .content-auto {
        content-visibility: auto;
    }
    .card-hover {
        @apply transition-all duration-300 hover:shadow-2xl hover:-translate-y-2 transform;
    }
    .btn-primary {
        @apply bg-primary hover:bg-primary/90 text-white font-medium px-4 py-2 rounded-lg transition-all duration-200 shadow-md hover:shadow-lg;
    }
    .btn-secondary {
        @apply bg-secondary hover:bg-secondary/90 text-white font-medium px-4 py-2 rounded-lg transition-all duration-200 shadow-md hover:shadow-lg;
    }
    .like-btn {
        @apply text-gray-400 hover:text-red-500 transition-all duration-200 relative;
    }
    .like-btn-active {
        @apply text-red-500;
    }
    .like-btn:active {
        @apply scale-110;
    }
    /* 点赞动画 */
    .like-animation {
        animation: like-pulse 0.5s ease-in-out;
    }
    @keyframes like-pulse {
        0% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.3);
        }
        100% {
            transform: scale(1);
        }
    }
    /* 弹入动画 */
    .animate-bounce-in {
        animation: bounce-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    }
    @keyframes bounce-in {
        0% { opacity: 0; transform: translateY(20px); }
        100% { opacity: 1; transform: translateY(0); }
    }
    /* 优化卡片样式 */
    .tool-card {
        @apply bg-white rounded-2xl shadow-lg overflow-hidden transition-all duration-300 hover:shadow-2xl border border-stone-200 hover:border-stone-300;
    }
    .tool-card-header {
        @apply p-6 border-b border-stone-100;
    }
    .tool-card-body {
        @apply p-6;
    }
    .tool-feature {
        @apply px-3 py-1 bg-gradient-to-r from-stone-50 to-stone-100 text-stone-600 text-xs rounded-full transition-all hover:bg-stone-200;
    }
    /* 工具图标背景 */
    .icon-bg-development {
        @apply bg-gradient-to-br from-primary/10 to-primary/20;
    }
    .icon-bg-design {
        @apply bg-gradient-to-br from-accent/10 to-accent/20;
    }
    .icon-bg-productivity {
        @apply bg-gradient-to-br from-secondary/10 to-secondary/20;
    }
    .icon-bg-utility {
        @apply bg-gradient-to-br from-green-100 to-green-200;
    }
}

.hero-section {
    isolation: isolate;
}

#welcomeWidget {
    transition: transform 0.35s ease, opacity 0.35s ease, left 0.35s ease;
}

#canvasuiFloatingLayer {
    position: fixed;
    inset: 0;
    z-index: 150;
    pointer-events: none;
    isolation: isolate;
}

#canvasuiFloatingLayer > * {
    pointer-events: auto;
}

#canvasuiFloatingLayer #welcomeWidget {
    position: fixed !important;
    left: 16px !important;
    top: 96px !important;
    z-index: 104 !important;
    overflow: visible;
}

#canvasuiFloatingLayer #welcomeWidget #welcomePanel {
    position: relative;
    overflow: visible;
    padding-right: 2.6rem;
}

#canvasuiFloatingLayer #welcomeToggle {
    position: absolute !important;
    right: -14px !important;
    top: 50% !important;
    z-index: 12 !important;
    transform: translateY(-50%) !important;
}

#canvasuiFloatingLayer #donateBtn,
#canvasuiFloatingLayer #guestbookBtn,
#canvasuiFloatingLayer #resumeBtn {
    position: fixed !important;
    right: 40px !important;
    left: auto !important;
    z-index: 106 !important;
}

#canvasuiFloatingLayer #donateBtn {
    top: 112px !important;
    bottom: auto !important;
}

#canvasuiFloatingLayer #guestbookBtn {
    top: 192px !important;
    bottom: auto !important;
}

#canvasuiFloatingLayer #resumeBtn {
    top: 272px !important;
    bottom: auto !important;
}

#canvasuiFloatingLayer #timeProgressPanel,
#timeProgressPanel {
    position: fixed !important;
    right: 40px !important;
    top: 346px !important;
    left: auto !important;
    z-index: 140 !important;
}

#canvasuiFloatingLayer .site-companion {
    z-index: 102 !important;
}

#canvasuiFloatingLayer > #donateModal,
#canvasuiFloatingLayer > #guestbookModal,
#canvasuiFloatingLayer > #resumeModal,
#canvasuiFloatingLayer > #contactModal,
#canvasuiFloatingLayer > #passwordModal,
#canvasuiFloatingLayer > #aboutModal {
    z-index: 220 !important;
    pointer-events: auto !important;
}

#welcomePanel {
    container-type: inline-size;
}

#welcomeWidget.welcome-collapsed {
    transform: translateX(calc(-100% + 56px));
}

#welcomeWidget.welcome-collapsed #welcomeToggle {
    right: 10px !important;
}

#welcomeWidget.welcome-footer-hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateX(-115%) !important;
}

.site-companion.companion-footer-hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(18px) scale(0.92) !important;
}

#welcomeWidget.welcome-collapsed #welcomeToggle i {
    transform: rotate(180deg);
}

.welcome-toggle {
    position: absolute;
    right: -13px;
    top: 50%;
    z-index: 12;
    width: 26px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #57534e;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(236, 253, 245, 0.9));
    border: 1px solid rgba(214, 211, 209, 0.72);
    border-left: 0;
    border-radius: 0 14px 14px 0;
    box-shadow: 8px 0 18px rgba(15, 118, 110, 0.1);
    transform: translateY(-50%);
    transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.welcome-toggle:hover {
    color: #047857;
    border-color: rgba(16, 185, 129, 0.42);
    background: #ffffff;
    transform: translate(2px, -50%);
}

.tutorial-more-link {
    align-self: center;
    flex: 0 0 auto;
    width: max-content;
    height: 32px;
    min-height: 32px;
    padding: 7px 12px !important;
    border-radius: 9px !important;
    font-size: 12px !important;
    line-height: 1;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.tutorial-more-link:hover {
    transform: translateY(-2px);
}

.tool-tabs {
    position: relative;
    isolation: isolate;
}

.tool-tabs button {
    position: relative;
    isolation: isolate;
    min-height: 40px;
    color: #57534e;
    transition:
        color 0.24s ease,
        background-color 0.24s ease,
        box-shadow 0.24s ease,
        transform 0.2s ease;
}

.tool-tabs button::before {
    content: '';
    position: absolute;
    inset: 3px;
    z-index: -1;
    border-radius: 9px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(14, 165, 233, 0.1));
    opacity: 0;
    transform: scaleX(0.72);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.tool-tabs button.is-active,
.tool-tabs button[aria-selected="true"] {
    color: #047857 !important;
    background: rgba(236, 253, 245, 0.92) !important;
    box-shadow: 0 5px 14px rgba(15, 118, 110, 0.12), inset 0 0 0 1px rgba(16, 185, 129, 0.16);
}

.tool-tabs button.is-active::before,
.tool-tabs button[aria-selected="true"]::before {
    opacity: 1;
    transform: scaleX(1);
}

.tool-tabs button.is-active i,
.tool-tabs button[aria-selected="true"] i {
    color: #059669;
    transform: translateY(-1px) scale(1.06);
}

.tool-tabs button i {
    transition: color 0.24s ease, transform 0.24s ease;
}

.tool-tabs button:active {
    transform: scale(0.97);
}

#toolsGrid.tab-switching > * {
    animation: tool-card-enter 0.42s cubic-bezier(0.22, 0.8, 0.24, 1) both;
}

#toolsGrid.tab-switching > *:nth-child(2) { animation-delay: 0.035s; }
#toolsGrid.tab-switching > *:nth-child(3) { animation-delay: 0.07s; }
#toolsGrid.tab-switching > *:nth-child(4) { animation-delay: 0.105s; }
#toolsGrid.tab-switching > *:nth-child(5) { animation-delay: 0.14s; }

#toolsGrid {
    will-change: opacity, transform;
    transition: opacity 0.135s ease, transform 0.135s ease;
}

#toolsGrid.tab-switching-out {
    opacity: 0.16;
    transform: translateY(6px) scale(0.994);
}

#toolsGrid.tab-switching-in > * {
    animation: tool-card-enter 0.36s cubic-bezier(0.2, 0.82, 0.28, 1) both;
}

#toolsGrid.tab-switching-in > *:nth-child(2) { animation-delay: 0.028s; }
#toolsGrid.tab-switching-in > *:nth-child(3) { animation-delay: 0.056s; }
#toolsGrid.tab-switching-in > *:nth-child(4) { animation-delay: 0.084s; }
#toolsGrid.tab-switching-in > *:nth-child(5) { animation-delay: 0.112s; }

#categoryFilterWrapper {
    z-index: 40;
    flex: 0 0 174px;
    width: 174px !important;
    height: 32px;
    min-height: 32px;
    transition: width 0.2s ease, flex-basis 0.2s ease, opacity 0.16s ease, transform 0.2s ease;
}

#categoryFilterWrapper.is-hidden {
    flex-basis: 0 !important;
    width: 0 !important;
    min-width: 0 !important;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateX(-8px);
}

.category-filter-native {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.category-filter-trigger {
    width: 100%;
    height: 32px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 10px;
    border: 1px solid rgba(168, 162, 158, 0.52);
    border-radius: 9px;
    color: #44403c;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 4px 12px rgba(28, 25, 23, 0.06);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-align: left;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.category-filter-trigger:hover,
#categoryFilterWrapper.is-open .category-filter-trigger {
    border-color: rgba(5, 150, 105, 0.54);
    background: #ffffff;
    box-shadow: 0 7px 16px rgba(5, 150, 105, 0.12);
}

.category-filter-trigger:focus-visible,
.category-filter-option:focus-visible {
    outline: 3px solid rgba(16, 185, 129, 0.2);
    outline-offset: 2px;
}

.category-filter-value {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.category-filter-value i {
    color: #059669;
    font-size: 11px;
}

#categoryFilterText {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-filter-chevron {
    color: #78716c;
    font-size: 10px;
    transition: transform 0.2s ease, color 0.2s ease;
}

#categoryFilterWrapper.is-open .category-filter-chevron {
    color: #059669;
    transform: rotate(180deg);
}

.category-filter-menu {
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    left: 0;
    display: grid;
    gap: 3px;
    min-width: 174px;
    padding: 5px;
    border: 1px solid rgba(168, 162, 158, 0.36);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 32px rgba(28, 25, 23, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.category-filter-menu[hidden] {
    display: none;
}

.category-filter-option {
    width: 100%;
    min-height: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 8px;
    border: 0;
    border-radius: 7px;
    color: #57534e;
    background: transparent;
    font-size: 12px;
    font-weight: 650;
    text-align: left;
    transition: color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.category-filter-option i {
    width: 14px;
    color: #a8a29e;
    text-align: center;
    transition: color 0.16s ease;
}

.category-filter-option:hover,
.category-filter-option.is-selected {
    color: #047857;
    background: rgba(209, 250, 229, 0.72);
}

.category-filter-option:hover {
    transform: translateX(2px);
}

.category-filter-option.is-selected i,
.category-filter-option:hover i {
    color: #059669;
}

@keyframes tool-card-enter {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#welcomeToggle i {
    transition: transform 0.2s ease;
}

#welcomeGreeting {
    display: block;
    max-width: 100%;
    color: #047857 !important;
    background: none !important;
    -webkit-text-fill-color: #047857 !important;
    font-size: 16px !important;
    font-size: clamp(12px, 6.1cqw, 18px) !important;
    line-height: 1.25;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
}

.tool-tabs {
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
}

.tool-tabs button {
    min-width: 112px;
    justify-content: center;
}

#toolsGrid a.bg-primary,
#toolsGrid a[onclick*="handleProtectedDownload"],
#toolsGrid a[onclick*="'download'"],
.tool-download-action,
#confirmDownloadBtn,
#sendGuestbookBtn {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: linear-gradient(135deg, #059669, #0d9488) !important;
    border-color: rgba(5, 150, 105, 0.9) !important;
    box-shadow: 0 12px 26px rgba(5, 150, 105, 0.22) !important;
}

#toolsGrid a.bg-primary:hover,
#toolsGrid a[onclick*="handleProtectedDownload"]:hover,
#toolsGrid a[onclick*="'download'"]:hover,
.tool-download-action:hover,
#confirmDownloadBtn:hover,
#sendGuestbookBtn:hover {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: linear-gradient(135deg, #047857, #0f766e) !important;
    box-shadow: 0 16px 32px rgba(5, 150, 105, 0.3) !important;
}

#toolsGrid a.bg-primary *,
#toolsGrid a[onclick*="handleProtectedDownload"] *,
#toolsGrid a[onclick*="'download'"] *,
.tool-download-action *,
#confirmDownloadBtn *,
#sendGuestbookBtn * {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
}

#cancelBtn {
    color: #44403c !important;
    -webkit-text-fill-color: #44403c !important;
    background: #ffffff !important;
    border: 1px solid #d6d3d1 !important;
}

#cancelBtn:hover {
    color: #0f766e !important;
    -webkit-text-fill-color: #0f766e !important;
    background: #f0fdfa !important;
    border-color: rgba(20, 184, 166, 0.55) !important;
}

.weather-permission-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: -2px 0 12px;
    padding: 10px 11px;
    border-radius: 12px;
    color: #7c2d12;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 700;
    background:
        linear-gradient(135deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96));
    border: 1px solid rgba(251, 191, 36, 0.48);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.weather-permission-notice.hidden {
    display: none;
}

.weather-permission-notice i {
    margin-top: 2px;
    color: #d97706;
    flex: 0 0 auto;
}

.weather-sensor-text,
#welcomeWeather.current-weather-text {
    display: none !important;
}

.weather-forecast-row {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) 68px;
    align-items: center;
    gap: 7px;
    min-height: 24px;
}

.weather-forecast-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 7px;
    padding-top: 1px;
}

.weather-forecast-head span {
    color: #78716c;
    font-size: 11px;
    font-weight: 900;
}

.weather-forecast-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 0;
    background: rgba(236, 253, 245, 0.78);
    color: #047857;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.weather-forecast-more:hover {
    background: rgba(209, 250, 229, 0.94);
    color: #065f46;
    transform: translateY(-1px);
}

.weather-forecast-more i {
    font-size: 9px;
    transition: transform 0.18s ease;
}

.weather-forecast-more.is-expanded i {
    transform: rotate(180deg);
}

.weather-forecast-date,
.weather-forecast-temp {
    white-space: nowrap;
}

.weather-forecast-temp {
    text-align: right;
}

.weather-forecast-summary {
    min-width: 0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 2px;
}

.weather-forecast-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.weather-forecast-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    font-size: 14px;
    line-height: 1;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.weather-forecast-icon--sun {
    color: #d97706;
    filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.36));
}

.weather-forecast-icon--cloud {
    color: #0f766e;
    filter: drop-shadow(0 2px 4px rgba(13, 148, 136, 0.22));
}

.weather-forecast-icon--fog {
    color: #64748b;
    filter: drop-shadow(0 2px 5px rgba(100, 116, 139, 0.22));
}

.weather-forecast-icon--rain,
.weather-forecast-icon--storm {
    color: #0284c7;
    filter: drop-shadow(0 2px 5px rgba(2, 132, 199, 0.32));
}

.weather-forecast-icon--snow {
    color: #0891b2;
    filter: drop-shadow(0 0 6px rgba(8, 145, 178, 0.28));
}

.weather-forecast-icon--sun i {
    animation: weather-icon-spin 8s linear infinite;
}

.weather-forecast-icon--cloud i,
.weather-forecast-icon--fog i {
    animation: weather-icon-float 2.8s ease-in-out infinite;
}

.weather-forecast-icon--rain i {
    animation: weather-icon-rain 1.15s ease-in-out infinite;
}

.weather-forecast-icon--storm i {
    animation: weather-icon-pulse 0.9s ease-in-out infinite alternate;
}

.weather-forecast-icon--snow i {
    animation: weather-icon-spin 5s linear infinite;
}

.daily-quote {
    max-width: min(420px, 38vw);
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #57534e;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(214, 211, 209, 0.82);
    box-shadow: 0 8px 22px rgba(28, 25, 23, 0.06);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
}

.time-progress-inline {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(214, 211, 209, 0.82);
    border-radius: 999px;
    color: #57534e;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 8px 22px rgba(28, 25, 23, 0.06);
    font-size: 11px;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
}

.time-progress-inline-item {
    min-height: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 9px;
}

.time-progress-inline-item + .time-progress-inline-item {
    border-left: 1px solid rgba(214, 211, 209, 0.7);
}

.time-progress-inline-item i {
    font-size: 11px;
}

.time-progress-inline-item--day { color: #0f766e; }
.time-progress-inline-item--day i { color: #d97706; }
.time-progress-inline-item--year { color: #047857; }
.time-progress-inline-item--year i { color: #059669; }
.time-progress-inline-item--today { color: #92400e; }
.time-progress-inline-item--today i { color: #d97706; }

.daily-quote i {
    color: #d97706;
    flex: 0 0 auto;
}

#dailyQuoteText {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.effect-toggle {
    position: relative;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px 6px 11px;
    border-radius: 999px;
    color: #57534e;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(214, 211, 209, 0.86);
    box-shadow: 0 8px 22px rgba(28, 25, 23, 0.06);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.effect-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(16, 185, 129, 0.45);
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.13);
}

.effect-toggle i {
    color: #059669;
}

.effect-toggle-label {
    order: 1;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    overflow: hidden;
}

.effect-toggle-label span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.weather-effect-control {
    margin: 0 0 12px;
}

.weather-effect-toggle {
    width: 100%;
    min-height: 38px;
    justify-content: space-between;
    padding: 8px 9px 8px 12px;
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(236, 253, 245, 0.94), rgba(240, 249, 255, 0.9));
    border-color: rgba(16, 185, 129, 0.22);
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.08);
}

.weather-effect-toggle::after {
    content: '';
    display: none;
    order: 2;
    margin-left: auto;
    padding: 3px 7px;
    border-radius: 999px;
    color: #047857;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(167, 243, 208, 0.72);
    font-size: 11px;
    line-height: 1;
}

.weather-effect-toggle .effect-toggle-track {
    order: 3;
    margin-left: auto;
}

.weather-effect-toggle.is-disabled::after {
    color: #78716c;
    border-color: rgba(214, 211, 209, 0.8);
    background: rgba(245, 245, 244, 0.88);
}

.friend-links-section {
    position: relative;
    display: block;
    margin-bottom: 22px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
}

.friend-links-section.hidden {
    display: none;
}

.friend-site-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    width: 100%;
    min-height: 42px;
    padding: 6px 2px 8px;
    border-radius: 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(214, 211, 209, 0.74);
}

.friend-site-card > div {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.friend-site-card p {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    border-radius: 0;
    color: #0f766e;
    background: transparent;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.friend-site-card strong {
    display: inline-block;
    flex: 0 0 auto;
    color: #1c1917;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.25;
    white-space: nowrap;
}

.friend-site-card span {
    display: inline-block;
    min-width: 0;
    margin-top: 0;
    overflow: hidden;
    color: #57534e;
    font-size: 12px;
    line-height: 1.45;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.friend-site-copy {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: #0f766e;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(20, 184, 166, 0.28);
    transition: transform 0.18s ease, background 0.18s ease;
}

.friend-site-copy:hover {
    transform: translateY(-1px);
    background: #ffffff;
}

.friend-links-list,
.friend-links-marquee {
    position: relative;
    min-width: 0;
    overflow: visible;
    padding-top: 8px;
}

.friend-links-track {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    animation: none;
}

.friend-links-tags {
    align-content: flex-start;
}

.friend-link-card {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 13px 5px 6px;
    border-radius: 999px;
    color: #292524;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(214, 211, 209, 0.76);
    box-shadow: 0 8px 18px rgba(28, 25, 23, 0.05);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.friend-link-card:hover {
    transform: translateY(-2px);
    border-color: rgba(20, 184, 166, 0.42);
    box-shadow: 0 16px 34px rgba(15, 118, 110, 0.11);
}

.friend-link-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    color: #0f766e;
    background: #ecfdf5;
    border: 1px solid #ccfbf1;
    font-size: 14px;
}

.friend-link-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.friend-link-info {
    min-width: 0;
}

.friend-link-info strong {
    display: block;
    overflow: hidden;
    color: #1c1917;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 180px;
}

.friend-link-info span {
    display: none;
}

.friend-links-empty {
    width: 100%;
    padding: 11px 12px;
    border: 1px dashed rgba(20, 184, 166, 0.35);
    border-radius: 999px;
    color: #78716c;
    background: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.friend-links-count {
    display: none;
}

.effect-toggle-track {
    position: relative;
    width: 30px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    padding: 2px;
    border-radius: 999px;
    background: #d6d3d1;
    transition: background 0.2s ease;
}

.effect-toggle-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(28, 25, 23, 0.22);
    transform: translateX(0);
    transition: transform 0.2s ease;
}

.effect-toggle.is-enabled {
    color: #064e3b;
    border-color: rgba(16, 185, 129, 0.46);
    background: rgba(236, 253, 245, 0.9);
}

.effect-toggle.is-enabled .effect-toggle-track {
    background: linear-gradient(135deg, #10b981, #0ea5e9);
}

.effect-toggle.is-enabled .effect-toggle-dot {
    transform: translateX(12px);
}

.effect-toggle.is-disabled {
    color: #78716c;
}

.canvasui-weather-layer,
.canvasui-bend-layer {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.canvasui-weather-layer {
    z-index: 45;
}

.canvasui-bend-layer {
    z-index: 18;
    opacity: 0.14;
    mix-blend-mode: multiply;
}

.canvasui-weather-layer.is-paused,
.canvasui-bend-layer.is-paused,
body.canvasui-effects-off .canvasui-weather-layer,
body.canvasui-effects-off .canvasui-bend-layer {
    opacity: 0;
    visibility: hidden;
}

.canvasui-weather-layer.is-unavailable,
.canvasui-bend-layer.is-unavailable {
    display: none;
}

.canvasui-effect-source,
.canvasui-effect-output,
.canvasui-effect-content {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.canvasui-effect-source {
    opacity: 0;
    pointer-events: none;
}

.canvasui-effect-output {
    pointer-events: none;
}

.canvasui-effect-content {
    overflow: hidden;
}

.canvasui-weather-scene,
.canvasui-bend-stage {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.95), rgba(236, 253, 245, 0.7) 46%, rgba(255, 247, 237, 0.78)),
        linear-gradient(rgba(5, 150, 105, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(217, 119, 6, 0.05) 1px, transparent 1px);
    background-size: auto, 42px 42px, 42px 42px;
}

.canvasui-weather-band,
.canvasui-bend-stage span {
    position: absolute;
    left: -10%;
    right: -10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(5, 150, 105, 0.3), transparent);
}

.canvasui-weather-band.one,
.canvasui-bend-stage span:nth-child(1) {
    top: 24%;
}

.canvasui-weather-band.two,
.canvasui-bend-stage span:nth-child(2) {
    top: 52%;
    background: linear-gradient(90deg, transparent, rgba(217, 119, 6, 0.16), transparent);
}

.canvasui-weather-band.three,
.canvasui-bend-stage span:nth-child(3) {
    top: 78%;
    background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.08), transparent);
}

.canvasui-weather-layer[data-effect="blaze"] {
    opacity: 0.52;
    mix-blend-mode: screen;
}

.canvasui-weather-layer[data-effect="clouds"] {
    opacity: 0.38;
    mix-blend-mode: screen;
}

.canvasui-weather-layer[data-effect="droplets"] {
    opacity: 1;
    mix-blend-mode: normal;
}

.canvasui-weather-layer[data-effect="frost"] {
    opacity: 0.72;
    mix-blend-mode: screen;
}

.canvasui-weather-layer[data-effect="blaze"] .canvasui-effect-output {
    filter: saturate(1.08) contrast(1.04);
}

.canvasui-weather-layer[data-effect="clouds"] .canvasui-effect-output {
    filter: saturate(1.02) contrast(0.84) brightness(1.28);
}

.canvasui-weather-layer[data-effect="droplets"] .canvasui-effect-output {
    filter: saturate(1.18) contrast(1.34) brightness(1.14);
}

.canvasui-weather-layer[data-effect="frost"] .canvasui-effect-output {
    filter: saturate(0.82) contrast(1.08) brightness(1.08);
}

body.canvasui-page-mounted {
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    background:
        radial-gradient(circle at 84% 10%, rgba(20, 184, 166, 0.16), transparent 29%),
        radial-gradient(circle at 12% 24%, rgba(251, 191, 36, 0.16), transparent 25%),
        linear-gradient(158deg, #dce9e7 0%, #edf1ec 48%, #eee5db 100%);
}

body.canvasui-page-mounted footer {
    background: linear-gradient(180deg, rgba(248, 250, 248, 0.76), rgba(239, 244, 241, 0.92));
    backdrop-filter: blur(12px);
}

body.canvasui-page-mounted #hero {
    background:
        radial-gradient(circle at 72% 24%, rgba(20, 184, 166, 0.1), transparent 28%),
        linear-gradient(180deg, rgba(229, 239, 236, 0.86), rgba(239, 236, 228, 0.68)) !important;
}

body.canvasui-page-mounted #toolsGrid > div,
body.canvasui-page-mounted #searchInput,
body.canvasui-page-mounted #categoryFilter,
body.canvasui-page-mounted .tool-tabs,
body.canvasui-page-mounted #hero + .container > div {
    background-color: rgba(247, 250, 248, 0.86) !important;
    backdrop-filter: blur(10px);
}

.canvasui-page-weather {
    position: relative;
    inset: auto;
    z-index: 0;
    width: 100vw;
    min-height: 100vh;
    height: auto;
    overflow: visible;
    pointer-events: none;
    background: transparent;
}

.canvasui-page-weather__source,
.canvasui-page-bend__source,
.canvasui-page-bend__output {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100vh;
}

.canvasui-page-weather__source,
.canvasui-page-bend__source {
    opacity: 0;
    pointer-events: none;
}

.canvasui-page-weather__snapshot-source,
.canvasui-page-bend__snapshot-source {
    position: absolute !important;
    inset: 0 auto auto 0 !important;
    display: block !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

.canvasui-page-weather__effect-source {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
    z-index: -2;
    background:
        radial-gradient(circle at 18% 24%, rgba(20, 184, 166, 0.22), transparent 32%),
        radial-gradient(circle at 78% 18%, rgba(251, 191, 36, 0.2), transparent 28%),
        radial-gradient(circle at 50% 86%, rgba(14, 165, 233, 0.14), transparent 36%),
        linear-gradient(145deg, #edf5f1 0%, #f6f4eb 52%, #e5f0ef 100%);
}

.canvasui-page-weather__tone,
.canvasui-page-weather__grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.canvasui-page-weather__tone.one {
    background: linear-gradient(115deg, transparent 8%, rgba(255, 255, 255, 0.46), transparent 38%);
    transform: translateX(-18%);
}

.canvasui-page-weather__tone.two {
    background: radial-gradient(circle at 72% 35%, rgba(255, 255, 255, 0.42), transparent 28%);
}

.canvasui-page-weather__tone.three {
    background: radial-gradient(circle at 30% 72%, rgba(15, 118, 110, 0.12), transparent 24%);
}

.canvasui-page-weather__grid {
    opacity: 0.28;
    background:
        linear-gradient(rgba(15, 118, 110, 0.14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(217, 119, 6, 0.08) 1px, transparent 1px);
    background-size: 44px 44px;
}

.canvasui-page-weather__content {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 100vh;
    height: auto;
    overflow: visible;
    pointer-events: auto;
    background: transparent;
}

.canvasui-page-bend {
    position: relative;
    width: 100%;
    min-height: 100vh;
    height: auto;
    overflow: visible;
    pointer-events: auto;
    background: transparent;
}

.canvasui-page-bend__content {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 100vh;
    height: auto;
    overflow: visible;
    pointer-events: auto;
    /*
     * Keep this wrapper out of its own stacking context. The actual text,
     * controls and panels below receive the higher z-index individually so
     * they can sit above the full-page CanvasUI effect canvas.
     */
    z-index: auto;
    background: transparent;
    -webkit-overflow-scrolling: auto;
}

.canvasui-page-weather__output {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 90;
}

.canvasui-page-bend__output {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 80;
    /*
     * Bend renders a visual copy of the page. Keep that copy subtle so it
     * cannot bleach the real DOM content underneath the official weather
     * layer.
     */
    opacity: var(--canvasui-bend-opacity, 0.01);
    mix-blend-mode: multiply;
}

/*
 * Standard Edge/Chrome cannot paint HTML into the CanvasUI source canvas.
 * Keeping Bend's duplicate page canvas visible in that mode creates a white
 * second copy over the real DOM. The Bend instance still remains available,
 * while the normal DOM and official weather layer provide the fallback view.
 */
body.canvasui-html-canvas-fallback .canvasui-page-bend__output {
    display: none;
}

body.canvasui-html-canvas-fallback .canvasui-page-weather__effect-source {
    display: none;
}

body.canvasui-html-canvas-fallback .canvasui-page-weather__output {
    mix-blend-mode: normal;
    filter: saturate(1.04) contrast(1.05);
}

.canvasui-page-bend {
    z-index: auto;
}

.canvasui-page-weather__output {
    opacity: var(--canvasui-weather-opacity, 0.36);
    /*
     * The official shader is intentionally above the page so rain, frost and
     * clouds can span the full document. Screen blending keeps the effect
     * visible while preserving the contrast of the DOM text below it.
    */
    mix-blend-mode: screen;
}

.canvasui-page-weather[data-effect="droplets"] {
    isolation: isolate;
}

.canvasui-page-weather[data-effect="blaze"] .canvasui-page-weather__output {
    opacity: calc(var(--canvasui-weather-opacity, 0.36) * 0.78);
    mix-blend-mode: screen;
    filter: saturate(1.36) contrast(1.12) brightness(1.04);
}

.canvasui-page-weather[data-effect="clouds"] .canvasui-page-weather__output {
    opacity: calc(var(--canvasui-weather-opacity, 0.36) * 0.68);
    mix-blend-mode: screen;
    filter: saturate(1.18) contrast(1.02) brightness(1.02);
}

.canvasui-page-weather[data-effect="droplets"] .canvasui-page-weather__output {
    /* Droplets already render their own refraction and highlights. Screen
       blending and post-processing flatten that glass detail into a rain haze. */
    opacity: calc(var(--canvasui-weather-opacity, 0.36) * 0.9);
    mix-blend-mode: normal;
    filter: saturate(1.04) contrast(1.08);
}

body.canvasui-html-canvas-fallback .canvasui-page-weather[data-effect="droplets"] .canvasui-page-weather__output {
    opacity: calc(var(--canvasui-weather-opacity, 0.36) * 0.78);
    mix-blend-mode: normal;
    filter:
        saturate(1.08)
        contrast(1.14)
        brightness(1.01)
        drop-shadow(0 0 1px rgba(255, 255, 255, 0.24))
        drop-shadow(0 0 5px rgba(94, 132, 214, 0.1));
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.canvasui-html-canvas-fallback .canvasui-page-weather[data-effect="droplets"]::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 89;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.008), rgba(161, 186, 232, 0.02) 52%, rgba(255, 255, 255, 0.008)),
        repeating-linear-gradient(
            108deg,
            rgba(255, 255, 255, 0.016) 0 1px,
            transparent 1px 34px
        );
    background-size: 100% 100%, 100% 100%;
    opacity: calc(var(--canvasui-weather-opacity, 0.36) * 0.08);
    mix-blend-mode: soft-light;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    animation: guoke-droplets-sheen 16s linear infinite;
}

@keyframes guoke-droplets-sheen {
    0% {
        background-position: 0 0, 0 0;
    }
    100% {
        background-position: 0 140px, 0 0;
    }
}

.canvasui-page-weather[data-effect="frost"] .canvasui-page-weather__output {
    opacity: calc(var(--canvasui-weather-opacity, 0.36) * 0.72);
    mix-blend-mode: screen;
    filter: saturate(1.18) contrast(1.14) brightness(1.03);
}

.canvasui-page-weather[data-effect="snow"] .canvasui-page-weather__output {
    display: none;
}

body.canvasui-html-canvas-fallback .canvasui-page-weather[data-effect="blaze"] .canvasui-page-weather__output,
body.canvasui-html-canvas-fallback .canvasui-page-weather[data-effect="clouds"] .canvasui-page-weather__output,
body.canvasui-html-canvas-fallback .canvasui-page-weather[data-effect="frost"] .canvasui-page-weather__output {
    mix-blend-mode: normal;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.canvasui-html-canvas-fallback .canvasui-page-weather[data-effect="blaze"] .canvasui-page-weather__output {
    opacity: calc(var(--canvasui-weather-opacity, 0.36) * 0.44);
    filter: saturate(1.12) contrast(1.06);
}

body.canvasui-html-canvas-fallback .canvasui-page-weather[data-effect="clouds"] .canvasui-page-weather__output {
    opacity: calc(var(--canvasui-weather-opacity, 0.36) * 0.42);
    filter: saturate(1.04) contrast(1.02);
}

body.canvasui-html-canvas-fallback .canvasui-page-weather[data-effect="frost"] .canvasui-page-weather__output {
    opacity: calc(var(--canvasui-weather-opacity, 0.36) * 0.52);
    filter: saturate(1.06) contrast(1.08);
}

.guoke-snow-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 100;
    opacity: calc(var(--canvasui-weather-opacity, 0.36) * 0.9);
    mix-blend-mode: screen;
}

body.canvasui-effects-off .guoke-snow-canvas {
    opacity: 0;
    visibility: hidden;
}

.weather-foreground {
    position: relative;
    z-index: 180 !important;
}

/* Keep the weather fold tab attached to the panel after weather text and
   controls receive the foreground marker. */
#welcomeWidget #welcomeToggle,
#welcomeWidget #welcomeToggle.weather-foreground {
    position: absolute !important;
    left: auto !important;
    right: -14px !important;
    top: 50% !important;
    bottom: auto !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
    z-index: 190 !important;
}

#welcomeWidget.welcome-collapsed #welcomeToggle,
#welcomeWidget.welcome-collapsed #welcomeToggle.weather-foreground {
    right: 10px !important;
}

body.canvasui-page-mounted :is(#donateBtn,#guestbookBtn,#resumeBtn,#welcomeWidget,#siteCompanion,header) {
    z-index: 140 !important;
}

body.canvasui-page-mounted :is(#donateModal,#guestbookModal,#resumeModal,#contactModal,#passwordModal,#ydinfoPanelModal) {
    z-index: 1000 !important;
}

#donateModalContent {
    position: relative;
    z-index: 1;
}

#closeDonateBtn {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    width: 36px;
    height: 36px;
    display: inline-grid !important;
    place-items: center;
    padding: 0 !important;
    border-radius: 10px;
    z-index: 5;
    background: rgba(255, 255, 255, 0.13);
}

#closeDonateBtn:hover {
    background: rgba(255, 255, 255, 0.24);
}

body.guoke-modal-open :is(#welcomeWidget,#donateBtn,#guestbookBtn,#resumeBtn,#siteCompanion,#canvasuiPageBend header,body > header) {
    z-index: 120 !important;
    opacity: 0.3 !important;
    pointer-events: none !important;
}

/* A resume header is part of the modal, not the page background layer. */
#resumeModal .resume-hero {
    position: relative !important;
    z-index: 1 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    isolation: isolate;
}

#resumeModal .resume-hero * {
    pointer-events: auto;
}

#resumeModal .resume-copy-btn {
    position: relative;
    z-index: 2;
    cursor: pointer;
}

.resume-copy-feedback {
    display: inline-flex;
    align-items: center;
    max-width: 0;
    margin-left: 0;
    overflow: hidden;
    color: #047857;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-4px);
    transition: max-width 0.2s ease, margin-left 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.resume-copy-feedback.is-visible {
    max-width: 52px;
    margin-left: 2px;
    opacity: 1;
    transform: translateX(0);
}

.resume-copy-feedback.is-failed {
    color: #b45309;
}

.resume-copy-btn.is-copied {
    color: #ffffff;
    background: #059669;
    transform: scale(1.06);
}

.resume-copy-btn.is-copy-failed {
    color: #ffffff;
    background: #d97706;
    animation: resume-copy-shake 0.28s ease;
}

@keyframes resume-copy-shake {
    0%, 100% { transform: translateX(0); }
    35% { transform: translateX(-2px); }
    70% { transform: translateX(2px); }
}

body.canvasui-page-mounted footer img[alt="公众号二维码"],
body.canvasui-page-mounted footer img[src*="gzh"] {
    position: relative;
    z-index: 180;
}

.about-status-dot {
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 12px;
    height: 12px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    z-index: 4;
}

.about-status-dot > span {
    position: absolute;
    inset: 0;
    display: block;
    border-radius: 50%;
}

.about-status-dot > span:last-child {
    position: relative;
    width: 12px;
    height: 12px;
    border: 2px solid #ffffff;
    box-sizing: border-box;
}

.time-progress-panel {
    width: 154px;
    padding: 12px 12px 11px;
    border: 1px solid rgba(214, 211, 209, 0.82);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 14px 34px rgba(28, 25, 23, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px) saturate(1.15);
    -webkit-backdrop-filter: blur(16px) saturate(1.15);
    color: #57534e;
    pointer-events: none;
    user-select: none;
}

.time-progress-day {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    color: #0f766e;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.time-progress-day i {
    flex: 0 0 auto;
    color: #d97706;
}

.time-progress-bars {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
    margin-top: 11px;
}

.time-progress-meter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.time-progress-meter-track {
    position: relative;
    width: 14px;
    height: 68px;
    overflow: hidden;
    border: 1px solid rgba(214, 211, 209, 0.86);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(245, 245, 244, 0.94), rgba(231, 229, 228, 0.72));
    box-shadow: inset 0 1px 4px rgba(28, 25, 23, 0.08);
}

.time-progress-meter-fill {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 0%;
    border-radius: inherit;
    background: linear-gradient(180deg, #34d399, #0f766e);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
    transition: height 0.6s ease;
}

.time-progress-meter-fill--day {
    background: linear-gradient(180deg, #fbbf24, #d97706);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.28);
}

.time-progress-meter strong {
    max-width: 100%;
    overflow: hidden;
    color: #78716c;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.daily-quote.is-refreshing i {
    animation: quote-flick 0.6s ease both;
}

@keyframes quote-flick {
    0% { transform: translateY(0) rotate(0); opacity: 0.55; }
    45% { transform: translateY(-2px) rotate(-8deg); opacity: 1; }
    100% { transform: translateY(0) rotate(0); opacity: 1; }
}

.ydinfo-panel-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.ydinfo-panel-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.ydinfo-panel-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(28, 25, 23, 0.68);
    backdrop-filter: blur(8px);
}

.ydinfo-panel-dialog {
    position: relative;
    width: min(1180px, calc(100vw - 32px));
    height: min(760px, calc(100vh - 72px));
    min-height: 520px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
    transform: translateY(16px) scale(0.98);
    transition: transform 0.22s ease;
}

.ydinfo-panel-modal.is-open .ydinfo-panel-dialog {
    transform: translateY(0) scale(1);
}

.ydinfo-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-bottom: 1px solid #e7e5e4;
    background: linear-gradient(135deg, #f8fafc 0%, #ecfdf5 52%, #fff7ed 100%);
}

.ydinfo-panel-title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.ydinfo-panel-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #047857;
    background: #d1fae5;
    border: 1px solid #a7f3d0;
}

.ydinfo-panel-title h3 {
    margin: 0;
    color: #1c1917;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
}

.ydinfo-panel-title p {
    margin: 2px 0 0;
    color: #78716c;
    font-size: 12px;
}

.ydinfo-panel-close {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #57534e;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid #e7e5e4;
    transition: all 0.18s ease;
}

.ydinfo-panel-close:hover {
    color: #be123c;
    border-color: #fecdd3;
    background: #fff1f2;
}

#ydinfoPanelFrame {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    background: #f8fafc;
}

.ydinfo-panel-frame-wrap {
    position: relative;
    flex: 1;
    min-height: 0;
    background:
        radial-gradient(circle at 30% 15%, rgba(16, 185, 129, 0.1), transparent 32%),
        linear-gradient(135deg, #f8fafc, #ffffff);
}

.ydinfo-panel-loading {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    color: #44403c;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 250, 252, 0.94)),
        radial-gradient(circle at 50% 44%, rgba(16, 185, 129, 0.16), transparent 42%);
    backdrop-filter: blur(10px);
    opacity: 1;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.ydinfo-panel-loading.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.ydinfo-loader-mark {
    position: relative;
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(167, 243, 208, 0.88);
    box-shadow: 0 20px 42px rgba(5, 150, 105, 0.14);
}

.ydinfo-loader-mark::before {
    content: '';
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 4px solid rgba(5, 150, 105, 0.15);
    border-top-color: #059669;
    animation: ydinfo-loader-spin 0.86s linear infinite;
}

.ydinfo-loader-mark span {
    position: absolute;
    bottom: 20px;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #f59e0b;
    animation: ydinfo-loader-dot 1.1s ease-in-out infinite;
}

.ydinfo-loader-mark span:nth-child(1) { left: 26px; }
.ydinfo-loader-mark span:nth-child(2) {
    left: 36px;
    animation-delay: 0.14s;
}
.ydinfo-loader-mark span:nth-child(3) {
    left: 46px;
    animation-delay: 0.28s;
}

.ydinfo-panel-loading h4 {
    margin: 8px 0 0;
    color: #1c1917;
    font-size: 16px;
    font-weight: 800;
}

.ydinfo-panel-loading p {
    margin: 0;
    color: #78716c;
    font-size: 13px;
}

@keyframes ydinfo-loader-spin {
    to { transform: rotate(360deg); }
}

@keyframes ydinfo-loader-dot {
    0%, 100% { transform: translateY(0); opacity: 0.42; }
    45% { transform: translateY(-7px); opacity: 1; }
}

.resume-float-button {
    position: fixed;
    right: 2.5rem;
    top: 17rem;
    z-index: 40;
}

.resume-modal {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.resume-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.resume-modal-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 24% 18%, rgba(16, 185, 129, 0.16), transparent 28%),
        rgba(28, 25, 23, 0.66);
    backdrop-filter: blur(10px);
}

.resume-dialog {
    position: relative;
    width: min(980px, calc(100vw - 32px));
    max-height: min(860px, calc(100vh - 48px));
    overflow: hidden auto;
    scrollbar-width: thin;
    scrollbar-color: #10b981 rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 32px 100px rgba(0, 0, 0, 0.34);
    transform: translateY(16px) scale(0.97);
    transition: transform 0.24s ease;
}

.resume-dialog::-webkit-scrollbar {
    width: 12px;
}

.resume-dialog::-webkit-scrollbar-track {
    margin: 14px 0;
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(236, 253, 245, 0.72), rgba(241, 245, 249, 0.86));
    border: 4px solid #ffffff;
}

.resume-dialog::-webkit-scrollbar-thumb {
    min-height: 72px;
    border-radius: 999px;
    background:
        linear-gradient(180deg, #34d399, #0f766e);
    border: 3px solid #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.resume-dialog::-webkit-scrollbar-thumb:hover {
    background:
        linear-gradient(180deg, #6ee7b7, #059669);
}

.resume-modal.is-open .resume-dialog {
    transform: translateY(0) scale(1);
}

.resume-close {
    position: sticky;
    top: 14px;
    float: right;
    z-index: 3;
    width: 38px;
    height: 38px;
    margin: 14px 14px -52px 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    transition: all 0.18s ease;
}

.resume-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.resume-hero {
    padding: 28px 34px 30px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(20, 184, 166, 0.18), transparent 38%),
        linear-gradient(135deg, #263247 0%, #111827 100%);
}

.resume-identity {
    display: flex;
    align-items: center;
    gap: 18px;
}

.resume-avatar {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 20px;
    color: #ecfdf5;
    font-size: 34px;
    font-weight: 900;
    background:
        radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.36), transparent 24%),
        linear-gradient(135deg, #059669, #0f766e 56%, #0e7490);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 18px 36px rgba(0, 0, 0, 0.22);
}

.resume-eyebrow {
    margin: 0 0 6px;
    color: #a7f3d0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
}

.resume-identity h3 {
    margin: 0;
    font-size: clamp(30px, 5vw, 44px);
    line-height: 1;
    font-weight: 900;
}

.resume-meta,
.resume-intent {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}

.resume-meta {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 700;
}

.resume-meta span,
.resume-intent span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.resume-meta .resume-wechat {
    gap: 8px;
    padding: 4px 5px 4px 8px;
    border-radius: 999px;
    color: #ecfdf5;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(167, 243, 208, 0.24);
}

.resume-copy-btn {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #064e3b;
    background: #a7f3d0;
    border: 1px solid rgba(255, 255, 255, 0.48);
    transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.resume-copy-btn:hover {
    transform: translateY(-1px);
    color: #022c22;
    background: #d1fae5;
}

.resume-copy-btn.copied,
.resume-copy-btn.copy-success {
    color: #ffffff;
    background: #059669;
}

.resume-intent {
    margin-top: 22px;
}

.resume-intent span {
    min-height: 32px;
    padding: 7px 11px;
    border-radius: 10px;
    color: #f8fafc;
    font-size: 13px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.resume-body {
    padding: 30px 34px 34px;
}

.resume-section + .resume-section {
    margin-top: 34px;
}

.resume-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.resume-section-title::after {
    content: '';
    height: 1px;
    flex: 1;
    background: #d6d3d1;
}

.resume-section-title i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #047857;
    background: #d1fae5;
    border: 1px solid #a7f3d0;
}

.resume-section-title h4 {
    margin: 0;
    color: #0c0a09;
    font-size: 22px;
    font-weight: 900;
    white-space: nowrap;
}

.resume-prose,
.resume-project,
.resume-skills {
    color: #1f2937;
    font-size: 14px;
    line-height: 1.78;
}

.resume-prose p,
.resume-skills p,
.resume-project-desc,
.resume-result {
    margin: 0;
}

.resume-prose p + p,
.resume-skills p + p {
    margin-top: 8px;
}

.resume-highlights {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.resume-highlights span {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 12px;
    color: #065f46;
    font-size: 13px;
    font-weight: 900;
    text-align: center;
    background: linear-gradient(180deg, #ecfdf5, #f8fafc);
    border: 1px solid #a7f3d0;
}

.resume-project {
    padding: 20px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e7e5e4;
}

.resume-project-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.resume-project-head h5 {
    margin: 0;
    color: #111827;
    font-size: 17px;
    font-weight: 900;
}

.resume-project-head p {
    margin: 4px 0 0;
    color: #047857;
    font-size: 13px;
    font-weight: 800;
}

.resume-project-head time {
    color: #57534e;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.resume-list {
    margin: 12px 0 0;
    padding-left: 20px;
}

.resume-list li + li {
    margin-top: 6px;
}

.resume-result {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    color: #064e3b;
    font-weight: 800;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.resume-skills {
    display: grid;
    gap: 10px;
}

.resume-skills p {
    padding: 12px 14px;
    border-radius: 12px;
    background: #fafaf9;
    border: 1px solid #e7e5e4;
}

.resume-modal-backdrop {
    background:
        radial-gradient(circle at 18% 12%, rgba(204, 251, 241, 0.48), transparent 28%),
        radial-gradient(circle at 82% 16%, rgba(254, 243, 199, 0.42), transparent 26%),
        rgba(250, 250, 249, 0.78);
    backdrop-filter: blur(12px);
}

.resume-dialog {
    width: min(920px, calc(100vw - 32px));
    border-radius: 16px;
    color: #292524;
    background: #fffdfa;
    border: 1px solid rgba(214, 211, 209, 0.86);
    box-shadow: 0 28px 80px rgba(41, 37, 36, 0.18);
}

.resume-close {
    color: #57534e;
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(214, 211, 209, 0.88);
    box-shadow: 0 10px 24px rgba(41, 37, 36, 0.08);
}

.resume-close:hover {
    color: #0f766e;
    background: #ffffff;
}

.resume-hero {
    padding: 28px 34px 24px;
    color: #292524;
    background:
        linear-gradient(135deg, rgba(236, 253, 245, 0.88), rgba(255, 251, 235, 0.64)),
        #fffefa;
    border-bottom: 1px solid rgba(214, 211, 209, 0.72);
}

.resume-identity {
    align-items: flex-start;
}

.resume-avatar {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    color: #047857;
    background: #ffffff;
    border: 1px solid rgba(20, 184, 166, 0.28);
    box-shadow: 0 12px 26px rgba(15, 118, 110, 0.12);
}

.resume-eyebrow {
    color: #0f766e;
}

.resume-identity h3 {
    color: #1c1917;
    font-size: clamp(30px, 4.4vw, 42px);
}

.resume-meta {
    color: #57534e;
}

.resume-meta .resume-wechat {
    color: #047857;
    background: rgba(236, 253, 245, 0.9);
    border-color: rgba(20, 184, 166, 0.28);
}

.resume-copy-btn {
    color: #047857;
    background: #ffffff;
    border-color: rgba(20, 184, 166, 0.28);
}

.resume-intent {
    gap: 8px;
    margin-top: 18px;
}

.resume-intent span {
    min-height: 30px;
    color: #44403c;
    background: rgba(255, 255, 255, 0.76);
    border-color: rgba(214, 211, 209, 0.78);
}

.resume-body {
    padding: 28px 34px 34px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(250, 250, 249, 0.92));
}

.resume-section + .resume-section {
    margin-top: 30px;
}

.resume-section-title::after {
    background: linear-gradient(90deg, rgba(20, 184, 166, 0.35), transparent);
}

.resume-section-title i {
    color: #0f766e;
    background: #f0fdfa;
    border-color: #ccfbf1;
}

.resume-section-title h4 {
    color: #292524;
    font-size: 20px;
}

.resume-prose,
.resume-project,
.resume-skills {
    color: #44403c;
}

.resume-highlights span {
    color: #0f766e;
    background: #ffffff;
    border-color: rgba(20, 184, 166, 0.22);
    box-shadow: 0 8px 20px rgba(20, 184, 166, 0.06);
}

.resume-project {
    background: #ffffff;
    border-color: rgba(214, 211, 209, 0.78);
    box-shadow: 0 14px 34px rgba(41, 37, 36, 0.05);
}

.resume-project-head h5 {
    color: #292524;
}

.resume-project-head p {
    color: #0f766e;
}

.resume-result {
    color: #065f46;
    background: #f0fdfa;
    border-color: #ccfbf1;
}

.resume-skills p {
    background: #ffffff;
    border-color: rgba(214, 211, 209, 0.76);
}

.site-companion {
    --companion-scale: 0.82;
    --robot-line: #3f3a36;
    --robot-plate: #f8fafc;
    --robot-plate-edge: #d6d3d1;
    --robot-glass: #0f766e;
    --robot-accent: #f59e0b;
    position: fixed;
    left: 18px;
    top: auto;
    bottom: 22px;
    z-index: 22;
    width: 84px;
    height: 114px;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(var(--companion-scale));
    transition: transform 0.8s cubic-bezier(0.2, 0.85, 0.25, 1.18);
    will-change: transform;
    cursor: pointer;
    opacity: 0.94;
    filter: drop-shadow(0 12px 16px rgba(28, 25, 23, 0.14));
    display: block;
    overflow: visible;
    box-sizing: border-box;
    transform-origin: 0 0;
    isolation: isolate;
}

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

.site-companion.is-disabled {
    display: none !important;
}

.site-companion.is-hopping {
    animation: robot-hop 0.74s ease both;
}

.site-companion.is-scanning .robot-head {
    animation: robot-nod 0.7s ease both;
}

.site-companion.is-scanning .robot-eye {
    width: 13px;
    border-radius: 5px;
}

.site-companion.is-waving .robot-arm.right {
    animation: robot-wave 0.46s ease-in-out 4 alternate;
}

.site-companion.is-sparkling .robot-core,
.site-companion:hover .robot-core {
    animation: robot-core-pulse 0.72s ease-in-out infinite alternate;
}

.site-companion:hover .site-companion-bubble,
.site-companion.is-chatting .site-companion-bubble {
    opacity: 1;
    transform: translate(-50%, -8px);
}

.site-companion:hover .robot-arm.right,
.site-companion.is-chatting .robot-arm.right {
    animation: robot-wave 0.56s ease-in-out infinite alternate;
}

.site-companion:hover .robot-eye,
.site-companion.is-chatting .robot-eye {
    background: linear-gradient(180deg, #bbf7d0, #22c55e 58%, #047857);
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.9);
}

.site-companion-bubble {
    position: absolute;
    left: 50%;
    bottom: 109px;
    width: max-content;
    max-width: min(220px, calc(100vw - 32px));
    padding: 9px 13px;
    border-radius: 14px;
    color: #1c1917;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.88));
    border: 1px solid rgba(214, 211, 209, 0.9);
    box-shadow: 0 14px 30px rgba(28, 25, 23, 0.16);
    font-size: 12px;
    line-height: 1.45;
    font-weight: 700;
    text-align: center;
    opacity: 0;
    transform: translate(-50%, 0);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
    white-space: normal;
    text-wrap: balance;
    z-index: 20;
}

.site-companion-bubble::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 10px;
    height: 10px;
    background: rgba(248, 250, 252, 0.9);
    border-right: 1px solid rgba(214, 211, 209, 0.9);
    border-bottom: 1px solid rgba(214, 211, 209, 0.9);
    transform: translateX(-50%) rotate(45deg);
}

.robot-signal {
    position: absolute;
    left: 50%;
    top: 2px;
    width: 2px;
    height: 13px;
    background: var(--robot-line);
    transform: translateX(-50%);
    border-radius: 999px;
}

.robot-signal::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -6px;
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: radial-gradient(circle at 35% 30%, #fff7ed 0 18%, #fbbf24 22%, var(--robot-accent) 70%);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.55);
    transform: translateX(-50%);
}

.robot-signal::after {
    content: '';
    position: absolute;
    left: 50%;
    top: -10px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid rgba(245, 158, 11, 0.45);
    transform: translateX(-50%);
    animation: robot-signal-ping 1.8s ease-in-out infinite;
}

.robot-ear {
    position: absolute;
    top: 33px;
    width: 10px;
    height: 21px;
    border-radius: 10px 6px 6px 10px;
    background: linear-gradient(180deg, #ecfeff, #5eead4 50%, #0f766e);
    border: 2px solid var(--robot-line);
    box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.45);
}

.robot-ear.left { left: 3px; }
.robot-ear.right {
    right: 3px;
    transform: scaleX(-1);
}

.robot-head {
    position: absolute;
    left: 11px;
    top: 15px;
    width: 62px;
    height: 48px;
    border-radius: 21px 21px 16px 16px;
    background:
        radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.96), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, var(--robot-plate) 58%, var(--robot-plate-edge) 100%);
    border: 2px solid var(--robot-line);
    box-shadow:
        inset 0 -8px 0 rgba(120, 113, 108, 0.11),
        inset 0 1px 0 rgba(255, 255, 255, 0.86),
        0 8px 18px rgba(28, 25, 23, 0.13);
}

.robot-head::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 14px;
    width: 42px;
    height: 20px;
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(6, 78, 59, 0.88), rgba(15, 118, 110, 0.92)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent);
    border: 1px solid rgba(63, 58, 54, 0.4);
    box-shadow: inset 0 0 10px rgba(20, 184, 166, 0.28);
}

.robot-head::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 7px;
    width: 13px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    transform: rotate(-18deg);
}

.robot-brow {
    position: absolute;
    left: 50%;
    top: 7px;
    width: 26px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.1));
    transform: translateX(-50%);
}

.robot-eye {
    position: absolute;
    top: 22px;
    z-index: 2;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: linear-gradient(180deg, #a7f3d0, #34d399 56%, #047857);
    border: 1px solid rgba(236, 253, 245, 0.55);
    box-shadow: 0 0 11px rgba(16, 185, 129, 0.82);
    animation: robot-look 4.6s ease-in-out infinite;
}

.robot-eye::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 2px;
    width: 3px;
    height: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
}

.robot-eye.left { left: 18px; }
.robot-eye.right { right: 18px; }

.robot-cheek {
    position: absolute;
    top: 35px;
    z-index: 2;
    width: 7px;
    height: 4px;
    border-radius: 999px;
    background: #fb7185;
    box-shadow: 0 0 8px rgba(251, 113, 133, 0.36);
    opacity: 0.68;
}

.robot-cheek.left { left: 13px; }
.robot-cheek.right { right: 13px; }

.robot-mouth {
    position: absolute;
    left: 50%;
    bottom: 7px;
    z-index: 2;
    width: 16px;
    height: 8px;
    border-bottom: 2px solid rgba(214, 211, 209, 0.92);
    border-radius: 0 0 999px 999px;
    background: transparent;
    transform: translateX(-50%);
}

.robot-body {
    position: absolute;
    left: 18px;
    top: 63px;
    width: 48px;
    height: 38px;
    border-radius: 16px 16px 13px 13px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.22), transparent 36%),
        linear-gradient(135deg, #047857 0%, #0d9488 56%, #0284c7 100%);
    border: 2px solid var(--robot-line);
    box-shadow:
        inset 0 0 0 4px rgba(255, 255, 255, 0.15),
        inset 0 -8px 0 rgba(6, 78, 59, 0.16);
}

.robot-body::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 9px;
    width: 28px;
    height: 18px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(6, 78, 59, 0.18);
}

.robot-body::after {
    content: '';
    position: absolute;
    left: 15px;
    top: -7px;
    width: 18px;
    height: 7px;
    border-radius: 7px 7px 0 0;
    background: #a8a29e;
    border: 2px solid var(--robot-line);
    border-bottom: 0;
}

.robot-core {
    position: absolute;
    left: 50%;
    top: 48%;
    z-index: 2;
    width: 13px;
    height: 13px;
    border-radius: 999px;
    background: radial-gradient(circle at 36% 30%, #fff7ed 0 16%, #fbbf24 28%, var(--robot-accent) 68%);
    border: 2px solid rgba(255, 255, 255, 0.56);
    box-shadow:
        0 0 13px rgba(251, 191, 36, 0.72),
        0 0 0 4px rgba(15, 118, 110, 0.35);
    transform: translate(-50%, -50%);
}

.robot-meter {
    position: absolute;
    left: 11px;
    bottom: 7px;
    z-index: 2;
    width: 26px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #fbbf24 0 28%, #22c55e 28% 62%, rgba(255, 255, 255, 0.5) 62% 100%);
    box-shadow: inset 0 0 0 1px rgba(28, 25, 23, 0.18);
}

.robot-arm {
    position: absolute;
    top: 8px;
    width: 13px;
    height: 23px;
    border-radius: 999px;
    background: linear-gradient(180deg, #f5f5f4, #a8a29e);
    border: 2px solid var(--robot-line);
    transform-origin: 50% 0;
}

.robot-arm::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 12px;
    height: 7px;
    border-radius: 999px;
    background: #f8fafc;
    border: 2px solid var(--robot-line);
    transform: translateX(-50%);
}

.robot-arm.left {
    left: -14px;
    transform: rotate(20deg);
}

.robot-arm.right {
    right: -14px;
    transform: rotate(-22deg);
}

.robot-shadow {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 66px;
    height: 12px;
    border-radius: 999px;
    background: radial-gradient(ellipse at center, rgba(28, 25, 23, 0.2), rgba(28, 25, 23, 0.03) 72%);
    filter: blur(1.2px);
    transform: translateX(-50%);
}

.robot-foot {
    position: absolute;
    top: 100px;
    width: 18px;
    height: 9px;
    border-radius: 999px 999px 7px 7px;
    background: linear-gradient(180deg, #78716c, var(--robot-line));
    border: 1px solid rgba(28, 25, 23, 0.55);
}

.robot-foot::after {
    content: '';
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 1px;
    height: 1px;
    background: rgba(255, 255, 255, 0.28);
}

.robot-foot.left { left: 21px; }
.robot-foot.right { right: 21px; }

@keyframes robot-hop {
    0% { margin-top: 0; }
    36% { margin-top: -22px; }
    100% { margin-top: 0; }
}

@keyframes robot-look {
    0%, 18%, 100% { transform: translateX(0); }
    34%, 48% { transform: translateX(4px); }
    68%, 82% { transform: translateX(-4px); }
}

@keyframes robot-wave {
    from { transform: rotate(-20deg); }
    to { transform: rotate(-72deg); }
}

@keyframes robot-nod {
    0%, 100% { transform: translateY(0) rotate(0); }
    40% { transform: translateY(2px) rotate(-3deg); }
    70% { transform: translateY(1px) rotate(3deg); }
}

@keyframes robot-core-pulse {
    from { transform: translate(-50%, -50%) scale(0.92); filter: brightness(1); }
    to { transform: translate(-50%, -50%) scale(1.22); filter: brightness(1.2); }
}

@keyframes robot-signal-ping {
    0%, 100% { transform: translateX(-50%) scale(0.78); opacity: 0.25; }
    50% { transform: translateX(-50%) scale(1.18); opacity: 0.75; }
}

@keyframes weather-icon-spin {
    to { transform: rotate(360deg); }
}

@keyframes weather-icon-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

@keyframes weather-icon-rain {
    0%, 100% { transform: translateY(-1px); opacity: 0.88; }
    50% { transform: translateY(2px); opacity: 1; }
}

@keyframes weather-icon-pulse {
    0% { transform: scale(0.92); filter: drop-shadow(0 0 0 rgba(2, 132, 199, 0)); }
    100% { transform: scale(1.08); filter: drop-shadow(0 0 6px rgba(2, 132, 199, 0.52)); }
}

@media (max-width: 768px) {
    .ydinfo-panel-dialog {
        height: min(760px, calc(100vh - 48px));
        min-height: 0;
        border-radius: 14px;
    }

    header .container {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    header .container > .flex:first-child {
        min-width: 0;
        width: 100%;
    }

    header h1 {
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 1.05rem;
        line-height: 1.25;
    }

    header .container > .flex:last-child {
        width: 100%;
        justify-content: flex-start;
    }

    .time-progress-inline {
        order: 0;
        flex: 0 0 auto;
        width: auto;
        max-width: min(100%, 230px);
        justify-content: center;
    }

    header .container > .flex:last-child button[onclick="openYdinfoPanel()"] {
        flex: 1 1 100%;
        justify-content: center;
    }

    .tool-tabs {
        width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .tool-tabs::-webkit-scrollbar {
        display: none;
    }

    .tool-tabs button {
        flex: 1 0 auto;
        min-width: 92px;
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .resume-float-button {
        right: 1rem;
        top: 15.5rem;
        padding: 0.65rem;
    }

    .resume-float-button .w-10 {
        width: 2.25rem;
        height: 2.25rem;
    }

    .resume-dialog {
        width: min(100%, calc(100vw - 24px));
        max-height: calc(100vh - 28px);
        border-radius: 14px;
    }

    .resume-close {
        top: 10px;
        margin: 10px 10px -48px 0;
    }

    .resume-hero {
        padding: 24px 18px 22px;
    }

    .resume-identity {
        align-items: flex-start;
        gap: 12px;
    }

    .resume-avatar {
        width: 58px;
        height: 58px;
        border-radius: 16px;
        font-size: 26px;
    }

    .resume-meta,
    .resume-intent {
        gap: 8px;
    }

    .resume-intent span {
        width: 100%;
        justify-content: flex-start;
    }

    .resume-body {
        padding: 22px 18px 26px;
    }

    .resume-section + .resume-section {
        margin-top: 28px;
    }

    .resume-section-title h4 {
        font-size: 19px;
    }

    .resume-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .resume-project {
        padding: 16px;
    }

    .resume-project-head {
        display: grid;
        gap: 8px;
    }

    .site-companion {
        --companion-scale: 0.62;
        z-index: 24;
        width: 68px;
        height: 92px;
        pointer-events: auto;
        transform-origin: left top;
    }

    .site-companion-bubble {
        display: block;
        max-width: min(176px, calc(100vw - 24px));
        bottom: 88px;
        font-size: 11px;
        padding: 7px 10px;
    }

    .daily-quote {
        order: 3;
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }

    .effect-toggle {
        min-height: 32px;
        padding: 6px 8px;
        gap: 6px;
        font-size: 11px;
    }

    .effect-toggle-track {
        width: 28px;
        height: 17px;
    }

    .effect-toggle-dot {
        width: 13px;
        height: 13px;
    }

    .effect-toggle.is-enabled .effect-toggle-dot {
        transform: translateX(11px);
    }

    .canvasui-weather-layer {
        z-index: 42;
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 136px;
    }

    body {
        min-width: 0;
        overflow-x: hidden;
        padding-bottom: calc(88px + env(safe-area-inset-bottom));
        background:
            linear-gradient(180deg, #ffffff 0, #f8fafc 42%, #fff7ed 100%) !important;
    }

    body::after {
        display: none;
    }

    header {
        background: rgba(255, 255, 255, 0.94) !important;
        border-bottom-color: rgba(214, 211, 209, 0.72) !important;
        box-shadow: 0 10px 30px rgba(28, 25, 23, 0.06);
    }

    header .container {
        padding: 12px 16px !important;
        gap: 10px !important;
    }

    header .container > .flex:first-child {
        justify-content: flex-start;
        gap: 10px;
    }

    header .container > .flex:first-child > div {
        width: 38px;
        height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 !important;
        border-radius: 12px;
    }

    header h1 {
        font-size: 1.18rem !important;
    }

    header .container > .flex:last-child {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px !important;
    }

    header .container > .flex:last-child button[onclick="openYdinfoPanel()"] {
        grid-column: 2;
        grid-row: 1;
        min-height: 40px;
        width: 100%;
        border-radius: 14px;
        box-shadow: 0 10px 24px rgba(5, 150, 105, 0.16);
    }

    #aboutBtn {
        grid-column: 1;
        grid-row: 1;
        width: 42px;
        height: 42px;
        justify-self: start;
    }

    #aboutBtn img {
        width: 42px !important;
        height: 42px !important;
    }

    #visitCountContainer {
        display: none !important;
    }

    .time-progress-inline {
        grid-column: 2;
        grid-row: 2;
        width: auto;
        max-width: 48vw;
        justify-content: center;
        justify-self: end;
        font-size: 10px;
    }

    .daily-quote {
        grid-column: 1;
        grid-row: 2;
        width: 100%;
        min-height: 34px;
        padding: 7px 12px;
        font-size: 12px;
        background: rgba(255, 255, 255, 0.82);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
    }

    #hero {
        padding: 38px 0 28px !important;
        min-height: 0;
    }

    #hero .absolute.inset-0 {
        opacity: 0.52;
    }

    #hero .container {
        min-height: 0 !important;
        justify-content: flex-start !important;
        padding-inline: 18px !important;
    }

    #hero .inline-block {
        margin-bottom: 18px !important;
        padding: 7px 14px !important;
        font-size: 13px !important;
    }

    #hero h2 {
        min-height: 44px !important;
        margin-bottom: 16px !important;
        font-size: clamp(30px, 9vw, 38px) !important;
        line-height: 1.12 !important;
    }

    #hero #typewriter:empty::before {
        content: "实用工具箱";
        color: #1c1917;
        -webkit-text-fill-color: #1c1917;
    }

    #hero p {
        max-width: 330px !important;
        margin-bottom: 0 !important;
        color: #57534e !important;
        font-size: 15px !important;
        line-height: 1.78 !important;
    }

    #hero p br,
    #hero .absolute.top-60 {
        display: none !important;
    }

    #hero + .container {
        margin-top: 0 !important;
        margin-bottom: 18px !important;
        padding-inline: 16px !important;
    }

    #hero + .container > div {
        max-width: none !important;
        padding: 14px !important;
        border-radius: 18px !important;
        box-shadow: 0 18px 44px rgba(41, 37, 36, 0.1) !important;
    }

    #searchInput {
        height: 48px;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        border-radius: 14px !important;
        font-size: 14px;
    }

    #hero + .container .flex.gap-4.w-full {
        display: grid !important;
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        gap: 10px !important;
    }

    #categoryFilterWrapper,
    #categoryFilter {
        min-width: 0 !important;
        height: 46px !important;
    }

    #categoryFilter {
        padding-left: 38px !important;
        padding-right: 32px !important;
        border-radius: 13px !important;
        font-size: 14px;
    }

    #hero + .container a[target="_blank"] {
        min-width: 0;
        min-height: 46px;
        padding: 0 12px !important;
        border-radius: 13px !important;
        font-size: 14px;
        white-space: nowrap;
    }

    #hero + .container .tutorial-more-link {
        width: max-content;
        height: 34px;
        min-height: 34px;
        padding: 7px 12px !important;
    }

    main.container {
        padding-inline: 16px !important;
        padding-bottom: 28px !important;
    }

    main > .flex.justify-center {
        position: sticky;
        top: 128px;
        z-index: 35;
        margin: 0 -16px 16px !important;
        padding: 8px 16px;
        background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(248, 250, 252, 0.82));
        backdrop-filter: blur(12px);
    }

    .tool-tabs {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        overflow: hidden !important;
        border-radius: 16px !important;
        padding: 4px !important;
        background: rgba(255, 255, 255, 0.84) !important;
        border: 1px solid rgba(214, 211, 209, 0.74);
        box-shadow: 0 12px 28px rgba(28, 25, 23, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.76) !important;
    }

    .tool-tabs button {
        min-width: 0 !important;
        width: 100%;
        justify-content: center;
        gap: 6px;
        padding: 10px 6px !important;
        border-radius: 12px !important;
        font-size: 13px !important;
        white-space: nowrap;
    }

    .tool-tabs button i {
        font-size: 13px;
    }

    #toolsGrid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px !important;
    }

    #toolsGrid > div {
        border-radius: 16px !important;
        box-shadow: 0 12px 30px rgba(41, 37, 36, 0.08) !important;
        transform: none !important;
    }

    #toolsGrid > div:hover {
        transform: none !important;
    }

    #toolsGrid > div > .flex.flex-col.h-full > .p-5.border-b,
    #toolsGrid > div > .flex.flex-col.md\:flex-row {
        padding: 14px !important;
        gap: 12px !important;
    }

    #toolsGrid > div > .flex.flex-col.h-full > .p-5.border-b > div:first-child {
        width: 46px !important;
        height: 46px !important;
        border-radius: 14px !important;
    }

    #toolsGrid > div > .flex.flex-col.h-full > .p-5.border-b img {
        width: 34px !important;
        height: 34px !important;
    }

    #toolsGrid h3 {
        font-size: 16px !important;
        line-height: 1.25 !important;
    }

    #toolsGrid > div > .flex.flex-col.h-full > .p-5.flex {
        padding: 14px !important;
    }

    #toolsGrid p.line-clamp-2 {
        margin-bottom: 10px !important;
        font-size: 13px !important;
        line-height: 1.6 !important;
        -webkit-line-clamp: 2;
    }

    #toolsGrid .mb-4.flex.flex-wrap {
        max-height: 30px;
        margin-bottom: 10px !important;
        overflow: hidden;
        gap: 6px !important;
    }

    #toolsGrid .mb-4.flex.flex-wrap span,
    #toolsGrid span[class*="bg-slate-100"] {
        padding: 4px 7px !important;
        border-radius: 8px !important;
        font-size: 11px !important;
    }

    #toolsGrid .flex.items-center.justify-between.text-xs {
        margin-bottom: 10px !important;
        font-size: 11px !important;
    }

    #toolsGrid .pt-4.border-t {
        padding-top: 10px !important;
    }

    #toolsGrid .tool-download-action,
    #toolsGrid .tool-download-action + a,
    #toolsGrid .like-btn {
        min-height: 42px;
        border-radius: 12px !important;
    }

    #toolsGrid .tool-download-action {
        font-size: 14px !important;
    }

    #toolsGrid .like-btn {
        min-width: 48px;
        justify-content: center;
        padding-inline: 10px !important;
    }

    #paginationContainer {
        margin-top: 22px !important;
        flex-wrap: wrap;
    }

    footer {
        margin-top: 18px !important;
        padding: 32px 0 96px !important;
    }

    footer .container {
        padding-inline: 16px !important;
    }

    .friend-links-section {
        margin-bottom: 22px;
        padding: 0;
        border-radius: 0;
    }

    .friend-site-card {
        padding: 8px 0 9px;
    }

    .friend-site-card > div {
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .friend-site-card > div::-webkit-scrollbar {
        display: none;
    }

    .friend-site-card span {
        white-space: nowrap;
        display: inline-block;
        overflow: visible;
        text-overflow: clip;
    }

    .friend-links-list,
    .friend-links-marquee {
        margin-inline: -2px;
    }

    .friend-link-card {
        height: 42px;
        padding-right: 12px;
    }

    .friend-links-count {
        display: none;
    }

    #donateBtn,
    #guestbookBtn,
    #resumeBtn {
        top: auto !important;
        bottom: calc(14px + env(safe-area-inset-bottom)) !important;
        right: 14px !important;
        left: auto !important;
        z-index: 58 !important;
        width: 50px;
        height: 50px;
        padding: 7px !important;
        border-radius: 18px !important;
        box-shadow: 0 14px 34px rgba(28, 25, 23, 0.18) !important;
        transform: none !important;
    }

    #canvasuiFloatingLayer #donateBtn {
        top: auto !important;
        bottom: calc(132px + env(safe-area-inset-bottom)) !important;
        right: 14px !important;
    }

    #canvasuiFloatingLayer #guestbookBtn {
        top: auto !important;
        bottom: calc(72px + env(safe-area-inset-bottom)) !important;
        right: 14px !important;
    }

    #canvasuiFloatingLayer #resumeBtn {
        top: auto !important;
        bottom: calc(12px + env(safe-area-inset-bottom)) !important;
        right: 14px !important;
    }

    #donateBtn::before {
        display: none;
    }

    #donateBtn > div,
    #guestbookBtn > div,
    #resumeBtn > div,
    .resume-float-button .w-10 {
        width: 38px !important;
        height: 38px !important;
    }

    #donateBtn > span,
    #guestbookBtn > span,
    #resumeBtn > span {
        display: none !important;
    }

    #guestbookModal {
        align-items: flex-end !important;
        padding: 0 !important;
    }

    #guestbookModalContent {
        width: 100% !important;
        max-width: 100% !important;
        height: min(82dvh, 720px) !important;
        max-height: calc(100dvh - 16px) !important;
        margin: 0 !important;
        border-radius: 24px 24px 0 0 !important;
        transform: none !important;
    }

    #guestbookModalContent > .bg-gradient-to-r {
        padding: 14px 16px !important;
        border-radius: 24px 24px 0 0;
    }

    #guestbookModalContent > .bg-gradient-to-r .w-10 {
        width: 38px !important;
        height: 38px !important;
    }

    #guestbookModalContent > .bg-gradient-to-r h3 {
        font-size: 17px !important;
    }

    #guestbookModalContent > .bg-gradient-to-r p {
        font-size: 11px !important;
    }

    #guestbookModalContent #danmakuArea {
        min-height: 0 !important;
        height: 38dvh !important;
        flex: 0 1 auto !important;
    }

    #guestbookModalContent #danmakuArea .text-center i {
        font-size: 40px !important;
        margin-bottom: 8px !important;
    }

    #guestbookModalContent > .p-4 {
        padding: 14px 16px calc(16px + env(safe-area-inset-bottom)) !important;
    }

    #guestbookModalContent input {
        min-height: 44px;
        border-radius: 14px !important;
        font-size: 14px !important;
    }

    #sendGuestbookBtn {
        min-height: 44px;
        border-radius: 14px !important;
    }

    #idleNotification {
        display: none !important;
    }

    .site-companion {
        display: none !important;
    }

    #welcomeWidget,
    .canvasui-weather-layer {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-companion,
    .site-companion.is-hopping,
    .robot-eye,
    .robot-arm.right,
    .robot-core,
    .robot-signal::after,
    .weather-forecast-icon i,
    .ydinfo-loader-mark::before,
    .ydinfo-loader-mark span,
    .daily-quote.is-refreshing i {
        animation: none !important;
        transition: none !important;
    }
}

@media (max-width: 1279px) {
    #welcomeWidget {
        display: none !important;
    }

    .time-progress-panel {
        display: none !important;
    }
}

/* Final controls alignment: all category controls match the tutorial action. */
#categoryFilterWrapper {
    z-index: 40;
    flex: 0 0 174px;
    width: 174px !important;
    height: 32px;
    min-height: 32px;
    transition: width 0.2s ease, flex-basis 0.2s ease, opacity 0.16s ease, transform 0.2s ease;
}

#categoryFilterWrapper.is-hidden {
    flex-basis: 0 !important;
    width: 0 !important;
    min-width: 0 !important;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateX(-8px);
}

.category-filter-native {
    position: absolute;
    width: 1px !important;
    height: 1px !important;
    opacity: 0;
    pointer-events: none;
}

.category-filter-trigger {
    width: 100%;
    height: 32px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 10px;
    border: 1px solid rgba(168, 162, 158, 0.52);
    border-radius: 9px;
    color: #44403c;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 4px 12px rgba(28, 25, 23, 0.06);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-align: left;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.category-filter-trigger:hover,
#categoryFilterWrapper.is-open .category-filter-trigger {
    border-color: rgba(5, 150, 105, 0.54);
    background: #ffffff;
    box-shadow: 0 7px 16px rgba(5, 150, 105, 0.12);
}

.category-filter-trigger:focus-visible,
.category-filter-option:focus-visible {
    outline: 3px solid rgba(16, 185, 129, 0.2);
    outline-offset: 2px;
}

.category-filter-value {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.category-filter-value i { color: #059669; font-size: 11px; }
#categoryFilterText { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.category-filter-chevron { color: #78716c; font-size: 10px; transition: transform 0.2s ease, color 0.2s ease; }
#categoryFilterWrapper.is-open .category-filter-chevron { color: #059669; transform: rotate(180deg); }

.category-filter-menu {
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    left: 0;
    display: grid;
    gap: 3px;
    min-width: 174px;
    padding: 5px;
    border: 1px solid rgba(168, 162, 158, 0.36);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 32px rgba(28, 25, 23, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.category-filter-menu[hidden] { display: none; }

.category-filter-option {
    width: 100%;
    min-height: 31px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 8px;
    border: 0;
    border-radius: 7px;
    color: #57534e;
    background: transparent;
    font-size: 12px;
    font-weight: 650;
    text-align: left;
    transition: color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.category-filter-option i { width: 14px; color: #a8a29e; text-align: center; transition: color 0.16s ease; }
.category-filter-option:hover,
.category-filter-option.is-selected { color: #047857; background: rgba(209, 250, 229, 0.72); }
.category-filter-option:hover { transform: translateX(2px); }
.category-filter-option.is-selected i,
.category-filter-option:hover i { color: #059669; }

@media (max-width: 768px) {
    #categoryFilterWrapper {
        width: 100% !important;
        height: 34px !important;
        min-height: 34px !important;
        flex-basis: auto;
    }

    #categoryFilterWrapper.is-hidden {
        width: 0 !important;
        flex-basis: 0 !important;
    }

    .category-filter-trigger {
        height: 34px !important;
        min-height: 34px !important;
        padding-inline: 11px;
    }

    #hero + .container .tutorial-more-link {
        height: 34px !important;
        min-height: 34px !important;
    }

    .category-filter-menu {
        min-width: 100%;
    }
}

@media (max-width: 1280px) {
    header .container {
        gap: 12px;
    }
}

/* Runtime recovery layer: visible effects without blocking page interaction. */
.guoke-natural-page {
    min-height: 100vh;
}

#guokeWeatherFallback {
    position: fixed;
    inset: 0;
    z-index: 8;
    overflow: hidden;
    pointer-events: none;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

#guokeWeatherFallback.is-disabled,
body.guoke-effects-off #guokeWeatherFallback {
    opacity: 0;
    visibility: hidden;
}

.guoke-weather-fallback > span,
.guoke-weather-fallback i {
    pointer-events: none;
}

.guoke-sun-glow,
.guoke-sun-disc,
.guoke-sun-beams,
.guoke-sun-specks {
    position: absolute;
    display: block;
}

.guoke-sun-glow {
    width: 48vmin;
    height: 48vmin;
    top: -18vmin;
    right: 2vmin;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 210, 98, 0.28), rgba(255, 189, 71, 0.08) 42%, transparent 70%);
    filter: blur(8px);
    animation: guoke-sun-breathe 5s ease-in-out infinite;
}

.guoke-sun-disc {
    width: 13vmin;
    height: 13vmin;
    top: 9vmin;
    right: 15vmin;
    border-radius: 50%;
    background: radial-gradient(circle at 34% 32%, #fff9c4 0 8%, #ffd166 35%, #f59e0b 75%, rgba(245, 158, 11, 0.2));
    box-shadow: 0 0 44px rgba(251, 191, 36, 0.48), 0 0 110px rgba(251, 191, 36, 0.24);
    opacity: 0.76;
    animation: guoke-sun-float 6s ease-in-out infinite;
}

.guoke-sun-beams {
    inset: -20%;
    background: repeating-conic-gradient(from 8deg at 81% 18%, rgba(255, 214, 116, 0.14) 0deg 3deg, transparent 3deg 16deg);
    mask-image: radial-gradient(circle at 81% 18%, black 0 28%, transparent 63%);
    animation: guoke-sun-spin 24s linear infinite;
}

.guoke-sun-specks {
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 215, 120, 0.5) 0 1px, transparent 1.5px);
    background-size: 76px 92px;
    opacity: 0.18;
    animation: guoke-specks-drift 15s linear infinite;
}

.guoke-cloud {
    position: absolute;
    display: block;
    width: 30vmax;
    height: 8vmax;
    border-radius: 999px;
    background:
        radial-gradient(ellipse at 28% 65%, rgba(255, 255, 255, 0.92) 0 19%, transparent 20%),
        radial-gradient(ellipse at 48% 42%, rgba(255, 255, 255, 0.9) 0 27%, transparent 28%),
        radial-gradient(ellipse at 70% 64%, rgba(255, 255, 255, 0.86) 0 22%, transparent 23%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(186, 230, 253, 0.48));
    filter: blur(1.6px);
    opacity: 0.5;
    animation: guoke-cloud-drift 24s ease-in-out infinite alternate;
}

.guoke-cloud-one {
    top: 12%;
    left: -8%;
}

.guoke-cloud-two {
    top: 28%;
    right: -14%;
    transform: scale(0.72);
    opacity: 0.34;
    animation-duration: 31s;
}

.guoke-cloud-three {
    top: 53%;
    left: 18%;
    transform: scale(0.58);
    opacity: 0.22;
    animation-duration: 38s;
}

.guoke-cloud-light {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(191, 219, 254, 0.12), transparent 44%, rgba(255, 255, 255, 0.08));
}

.guoke-rain-wash {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(125, 211, 252, 0.05), transparent 40%, rgba(30, 64, 175, 0.08));
    opacity: 0.75;
}

.guoke-rain-glass {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(105deg, transparent 0 13px, rgba(255, 255, 255, 0.05) 14px 15px, transparent 16px 31px);
    opacity: 0.26;
    transform: translateX(-18%);
    animation: guoke-rain-sheen 2.2s linear infinite;
}

.guoke-raindrop {
    position: absolute;
    top: var(--drop-top);
    left: var(--drop-left);
    width: max(2px, calc(var(--drop-size) * 0.12));
    height: var(--drop-size);
    border-radius: 999px 999px 58% 58%;
    background:
        linear-gradient(105deg, rgba(255, 255, 255, 0.92) 0 9%, rgba(186, 230, 253, 0.74) 19%, rgba(37, 99, 235, 0.28) 58%, rgba(15, 23, 42, 0.2));
    box-shadow:
        -1px 0 1px rgba(255, 255, 255, 0.75),
        2px 0 4px rgba(30, 64, 175, 0.24),
        0 0 7px rgba(125, 211, 252, 0.22);
    opacity: var(--drop-opacity);
    filter: blur(0.1px);
    transform: rotate(9deg);
    animation: guoke-raindrop-fall var(--drop-duration) linear var(--drop-delay) infinite;
}

.guoke-raindrop::before {
    content: "";
    position: absolute;
    top: 9%;
    left: 22%;
    width: 25%;
    height: 38%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    filter: blur(0.3px);
}

.guoke-frost-vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 16%, rgba(219, 234, 254, 0.55), transparent 25%),
        radial-gradient(circle at 88% 76%, rgba(224, 242, 254, 0.42), transparent 28%),
        linear-gradient(135deg, rgba(239, 246, 255, 0.26), transparent 44%, rgba(191, 219, 254, 0.18));
    filter: blur(1px);
}

.guoke-snowflakes {
    position: absolute;
    inset: 0;
}

.guoke-snowflake {
    position: absolute;
    top: -8%;
    left: var(--snow-left);
    color: rgba(255, 255, 255, 0.78);
    font-size: var(--snow-size);
    text-shadow: 0 0 10px rgba(125, 211, 252, 0.82);
    animation: guoke-snow-fall 9s linear var(--snow-delay) infinite;
}

.guoke-floating-repaired #donateBtn,
.guoke-floating-repaired #guestbookBtn,
.guoke-floating-repaired #resumeBtn {
    position: fixed !important;
    right: 40px !important;
    left: auto !important;
    z-index: 106 !important;
}

.guoke-floating-repaired #donateBtn { top: 112px !important; bottom: auto !important; }
.guoke-floating-repaired #guestbookBtn { top: 192px !important; bottom: auto !important; }
.guoke-floating-repaired #resumeBtn { top: 272px !important; bottom: auto !important; }

.guoke-floating-repaired #timeProgressPanel {
    top: 346px !important;
    right: 40px !important;
}

@media (max-width: 1279px) {
    .guoke-floating-repaired #donateBtn,
    .guoke-floating-repaired #guestbookBtn,
    .guoke-floating-repaired #resumeBtn {
        top: auto !important;
        right: 14px !important;
    }

    .guoke-floating-repaired #donateBtn { bottom: 132px !important; }
    .guoke-floating-repaired #guestbookBtn { bottom: 72px !important; }
    .guoke-floating-repaired #resumeBtn { bottom: 12px !important; }

    .guoke-floating-repaired #timeProgressPanel {
        display: none !important;
    }
}

@keyframes guoke-sun-breathe {
    0%, 100% { transform: scale(0.96); opacity: 0.7; }
    50% { transform: scale(1.04); opacity: 0.98; }
}

@keyframes guoke-sun-float {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(-10px, 8px, 0); }
}

@keyframes guoke-sun-spin {
    to { transform: rotate(360deg); }
}

@keyframes guoke-specks-drift {
    to { transform: translate3d(26px, 18px, 0); }
}

@keyframes guoke-cloud-drift {
    to { transform: translate3d(18vw, 8px, 0); }
}

@keyframes guoke-rain-sheen {
    to { transform: translateX(18%); }
}

@keyframes guoke-raindrop-fall {
    0% { transform: translate3d(0, -16vh, 0) rotate(9deg); }
    78% { transform: translate3d(var(--drop-drift), 76vh, 0) rotate(9deg); }
    100% { transform: translate3d(calc(var(--drop-drift) * 1.12), 112vh, 0) rotate(9deg); }
}

@keyframes guoke-snow-fall {
    0% { transform: translate3d(0, -12vh, 0) rotate(0deg); opacity: 0; }
    12% { opacity: 0.82; }
    100% { transform: translate3d(5vw, 112vh, 0) rotate(360deg); opacity: 0.08; }
}
