html { scroll-behavior: smooth; }
body {
    background-image: url('./image/backgroud.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    color: #2d3748; /* text-gray-800 */
    margin: 0;
    overflow-x: hidden;
}

#app-wrapper {
    min-height: 100vh;
    width: 100%;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background-color: rgba(255, 255, 255, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1rem 2rem;
    box-sizing: border-box;
}
@media (min-width: 640px) { #app-wrapper { padding: 1.5rem 1.5rem 3rem; } }
@media (min-width: 768px) { #app-wrapper { padding: 2rem 2rem 4rem; } }

.content-block {
    background-color: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.08);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(15px);
}
.content-block:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 12px 38px 0 rgba(14, 165, 233, 0.15), 0 8px 20px -8px rgba(14, 165, 233, 0.1);
}
.content-block h2 {
    margin-bottom: 1.5rem;
    padding-bottom: 0;
    border-bottom: none;
    color: #1a202c; /* text-gray-900 */
    font-weight: 600;
}

/* Date-Time Display Optimization */
#date-time-info {
    line-height: 1.3;
}
#current-time {
    letter-spacing: -0.025em;
}
#current-time .time-colon {
    animation: blinkColon 1s steps(1, end) infinite;
    position: relative;
    top: -0.05em;
}
#current-date {
    font-size: 0.875rem;
    color: #4b5563;
}

@keyframes blinkColon {
    50% { opacity: 0.2; }
}


.search-form-container {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.search-input { background-color: transparent; color: #1a202c; }
.search-input::placeholder { color: #a0aec0; }
.search-input:focus, #todo-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.4);
    border-color: rgba(56, 189, 248, 0.7);
}

.search-submit-button { background-color: #0ea5e9; color: white; transition: background-color 0.2s ease-in-out; }
.search-submit-button:hover { background-color: #0284c7; }

.search-engine-btn-inline {
    background-color: transparent;
    border: none;
    color: #718096;
    padding: 0.5rem;
    margin: 0 0.125rem;
    border-radius: 0.375rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    min-height: 2.25rem;
}
.search-engine-btn-inline:hover {
    color: #0ea5e9;
    background-color: rgba(14, 165, 233, 0.1);
}
.search-engine-btn-inline.active {
    color: #0284c7;
    background-color: rgba(14, 165, 233, 0.15);
    box-shadow: 0 0 8px -2px rgba(14, 165, 233, 0.4);
}
.baidu-text-icon {
    font-weight: 600;
    font-size: 0.95em;
    line-height: 1;
}
#search-engine-icons-wrapper {
    border-right: 1px solid #e2e8f0;
    padding-right: 0.5rem;
    margin-right: 0.25rem;
}

.tool-item {
    background-color: rgba(255,255,255,0.7);
    border: 1px solid #f0f3f7;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.tool-item i { transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1); }
.tool-item:hover {
    background-color: #ffffff;
    border-color: #bae6fd;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 12px -3px rgba(100,100,100,0.08);
}
.tool-item:hover i { transform: scale(1.15); }
.tool-item span { color: #4a5568; }

.hot-item { transition: background-color 0.2s ease-in-out, padding-left 0.25s cubic-bezier(0.4, 0, 0.2, 1); }
.hot-item:hover {
    background-color: #e0f2fe;
    padding-left: 1rem;
}
.hot-item:hover .hot-title-text { color: #0284c7 !important; }
.hot-title-text {
    color: #1f2937;
    /* font-weight is now set by Tailwind class in JS (font-semibold) */
}

#hitokoto-quote {
    font-family: inherit;
    font-weight: 400;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #718096;
    text-shadow: none;
    padding: 0.25rem 0;
    min-height: auto;
    transition: opacity 0.3s ease, color 0.3s ease;
    cursor: pointer;
}
#hitokoto-quote .source-text { display: inline; font-size: 1em; color: inherit; margin-left: 0.5em; }
#hitokoto-quote:hover { opacity: 1 !important; color: #2d3748; }

.hot-list-container ul { divide-y: 1px; divide-color: #f1f5f9; }

.hot-list-container::-webkit-scrollbar {
    display: none;
}
.hot-list-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}


.quick-action-btn {
    background-color: rgba(255, 255, 255, 0.6);
    color: #4a5568;
    padding: 0.4rem 0.85rem;
    border-radius: 0.6rem;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease-in-out;
}
.quick-action-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: #0ea5e9;
    border-color: #bae6fd;
}
.quick-action-btn.active {
    background-color: rgba(14, 165, 233, 0.15);
    color: #0284c7;
    border-color: #7dd3fc;
}
body.focused #tools-showcase,
body.focused #mid-content-blocks,
body.focused #hot-topics-section,
body.focused #quote-section,
body.focused footer:not(#main-footer) {
    display: none !important;
}


body.focused #search-wrapper { margin-top: 15vh; transition: margin-top 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
body:not(.focused) #search-wrapper { margin-top: 0; transition: margin-top 0.5s cubic-bezier(0.4, 0, 0.2, 1); }

#todo-input { color: #1a202c; border-color: #cbd5e1; }
#todo-input::placeholder { color: #a0aec0; }
#todo-list li { background-color: #f8fafc; border: 1px solid #f1f5f9; }
#todo-list li.completed span.todo-text { text-decoration: line-through; color: #94a3b8; }
#todo-list li span.todo-text { color: #334155; cursor: pointer; }
#todo-list li button.delete-todo-btn { color: #f43f5e; opacity: 0.4; }
#todo-list li button.delete-todo-btn:hover { opacity: 1; color: #e11d48; }
#todo-form button[type="submit"] { background-color: #0ea5e9; }
#todo-form button[type="submit"]:hover { background-color: #0284c7; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.04); border-radius: 4px; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.18); border-radius: 4px; transition: background-color 0.2s; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.28); }

::selection { background-color: #bae6fd; color: #0369a1; }

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

.animate-fadeInUp {
    animation: contentBlockFadeInUp 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}