* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; }

body { background-color: #f0f5ff; background-image: none; background-size: cover; background-position: center; background-repeat: no-repeat; background-attachment: fixed; min-height: 200vh; padding: 20px; color: #333; overflow-y: auto; margin: 0; transition: background-image 0.5s ease-in-out; }

.container { width: 100%; max-width: 1200px; background: transparent; padding: 20px; margin: 0 auto; min-height: 200vh; position: relative; }

header { text-align: left; margin-bottom: 30px; position: relative; display: flex; justify-content: space-between; align-items: flex-start; }

h1 { display: none; }

.nav-title-box { position: fixed; top: 20px; left: 20px; background-color: rgba(255, 255, 255, 0.7); border-radius: 16px; padding: 0 18px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08); color: #333; display: flex; align-items: center; transition: all 0.3s ease; z-index: 1000; width: 150px; height: 60px; backdrop-filter: blur(10px); }

.nav-title-box:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); }

.nav-title { color: #333; font-weight: 600; font-size: 20px; margin: 0; white-space: nowrap; }

.nav-title i { color: #4a76ff; margin-right: 8px; }

.search-container { margin: 0; position: fixed; top: 40%; left: 50%; transform: translate(-50%, -70%); width: 100%; max-width: 800px; transition: all 0.3s ease; z-index: 100; visibility: visible; opacity: 1; }

/* 搜索容器在滚动时隐藏 */
.search-container.hidden { transform: translate(-50%, -200%); visibility: hidden; opacity: 0; pointer-events: none; }

/* 分类和网站容器初始状态 */
.categories, .sites-container { opacity: 0; visibility: hidden; position: fixed; left: 50%; transform: translate(-50%, 30px); width: 100%; max-width: 1200px; transition: all 0.3s ease; pointer-events: none; padding: 0 20px; }

.categories { top: 100px; }

.sites-container { top: 160px; bottom: 20px; overflow-y: auto; }

/* 搜索隐藏时显示分类和网站 */
.categories.visible, .sites-container.visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); pointer-events: auto; }

/* 站内搜索 */
.site-search-container { position: fixed; left: 90px; bottom: 20px; width: 0; height: 50px; background: rgba(255, 255, 255, 0.7); border-radius: 25px; overflow: hidden; transition: width 0.3s ease; backdrop-filter: blur(10px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08); z-index: 999; }

.site-search-container.active { width: 300px; }

.site-search-input { width: 100%; height: 100%; padding: 0 20px; border: none; outline: none; background: transparent; font-size: 15px; color: #333; }

.site-search-results { position: fixed; left: 90px; bottom: 80px; width: 300px; background: rgba(255, 255, 255, 0.7); border-radius: 16px; overflow: hidden; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08); backdrop-filter: blur(10px); display: none; z-index: 999; padding: 2px 0; transition: height 0.3s ease; }

.site-search-results.active { display: flex; flex-direction: column; gap: 2px; }

.site-search-item { height: 44px; padding: 0 20px; display: flex; align-items: center; cursor: pointer; transition: background-color 0.2s ease; }

.site-search-item:hover { background: rgba(255, 255, 255, 0.2); }

.site-search-item img { width: 20px; height: 20px; margin-right: 12px; border-radius: 4px; }

.site-search-item-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }

.site-search-item-name { color: #333; font-size: 14px; font-weight: 500; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.site-search-item-category { color: #666; font-size: 12px; }

.site-search-no-results { height: 44px; display: flex; align-items: center; justify-content: center; padding: 0 20px; color: #666; text-align: center; font-size: 14px; }

/* 切换按钮 */
.view-toggle { position: fixed; left: 20px; bottom: 20px; width: 50px; height: 50px; border-radius: 25px; background: #4a76ff; color: white; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(74, 118, 255, 0.2); z-index: 1000; transition: transform 0.3s ease, box-shadow 0.3s ease; }

.view-toggle:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(74, 118, 255, 0.3); }

.view-toggle i { font-size: 20px; }

.search-engines { display: flex; justify-content: center; margin-bottom: 40px; }

.engine-selector { display: flex; background: rgba(255, 255, 255, 0.7); border-radius: 16px; padding: 5px; position: relative; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08); transform-origin: center top; backdrop-filter: blur(10px); }

@media screen and (max-width: 767px) { .nav-title-box { display: none; } .engine-selector { transform: scale(1.2); } }

.engine-option { padding: 10px 20px; cursor: pointer; z-index: 2; transition: color 0.3s ease; font-weight: 500; border-radius: 12px; position: relative; color: #666; }

.engine-option.active { color: #fff; }

.selector-bg { position: absolute; height: calc(100% - 10px); border-radius: 12px; background: #4a76ff; box-shadow: 0 4px 12px rgba(74, 118, 255, 0.2); transition: all 0.3s ease; top: 5px; left: 5px; z-index: 1; }

.search-box { display: flex; width: 100%; max-width: 800px; margin: 0 auto; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08); background: rgba(255, 255, 255, 0.7); border: none; backdrop-filter: blur(10px); }

.suggestions-container { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); width: 100%; max-width: 800px; background: rgba(255, 255, 255, 0.7); border-radius: 12px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08); display: none; z-index: 1000; margin-top: 8px; backdrop-filter: blur(10px); }

.suggestions-container.active { display: block; }

.suggestion-item { padding: 12px 20px; color: #333; cursor: pointer; font-size: 15px; display: flex; align-items: center; transition: background-color 0.2s ease; }

.suggestion-item:first-child { border-radius: 12px 12px 0 0; }

.suggestion-item:last-child { border-radius: 0 0 12px 12px; }

.suggestion-item:first-child:last-child { border-radius: 12px; }

.suggestion-item:hover, .suggestion-item.selected { background-color: rgba(255, 255, 255, 0.2); }

.suggestion-item i { margin-right: 10px; color: #9aa5c9; }

#search-input { flex: 1; padding: 15px 25px; border: none; outline: none; font-size: 16px; background: transparent; color: #333; }

#search-input::placeholder { color: #9aa5c9; }

#search-button { background: #4a76ff; color: white; border: none; padding: 0 25px; cursor: pointer; transition: background 0.3s ease; display: flex; align-items: center; justify-content: center; min-width: 50px; }

#search-button:hover { background: #3a66ee; }

.categories { margin-bottom: 20px; }

.category-selector { display: flex; justify-content: center; background: rgba(255, 255, 255, 0.7); border-radius: 16px; padding: 5px; position: relative; max-width: 800px; margin: 0 auto; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08); backdrop-filter: blur(10px); }

.category-selector::-webkit-scrollbar { display: none; }

.category-option { padding: 10px 18px; cursor: pointer; z-index: 2; transition: color 0.3s ease; font-weight: 500; font-size: 15px; border-radius: 12px; position: relative; color: #666; white-space: nowrap; flex-shrink: 0; }

.category-option.active { color: #fff; }

.sites-container { display: flex; flex-direction: column; gap: 24px; padding: 10px 0; }

.subtype-title { font-size: 16px; font-weight: 600; color: #fff; padding: 10px 15px; margin-bottom: 12px; position: relative; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); }

.subtype-title:after { content: ''; position: absolute; bottom: 0; left: 15px; width: 40px; height: 3px; background: #4a76ff; border-radius: 3px; }

.subtype-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; padding: 0 10px; }

.site-card { display: flex; flex-direction: row; align-items: center; padding: 16px; background: rgba(255, 255, 255, 0.7); border-radius: 16px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; text-decoration: none; color: #333; min-width: 140px; backdrop-filter: blur(10px); }

.site-card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); }

.site-icon { width: 28px; height: 28px; object-fit: cover; border-radius: 8px; margin-right: 12px; background: #f5f7ff; padding: 4px; }

.site-name { font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }


/* 移动端适配优化 */
@media (max-width: 768px) { .container { padding: 15px; } .subtype-container { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; } .category-selector { max-width: 100%; padding: 5px; justify-content: flex-start; } .category-option { padding: 8px 14px; font-size: 14px; } .site-card { padding: 12px; } .weather-widget { position: static; margin: 0 auto 20px auto; width: 100%; max-width: 100%; } h1 { font-size: 28px; } .engine-selector { padding: 4px; } .engine-option { padding: 8px 12px; font-size: 14px; white-space: nowrap; } /* 搜索引擎文字在小屏幕上的特别处理 */ .engine-option { letter-spacing: normal; transform: none; writing-mode: horizontal-tb; } .nav-title-box, .weather-widget { position: static; margin: 0 auto 15px auto; width: 100%; max-width: 100%; justify-content: center; } .container { padding-top: 20px; } header { flex-direction: column; align-items: center; margin-bottom: 20px; } }

@media (max-width: 480px) { h1 { font-size: 24px; } .search-box { max-width: 100%; } #search-input { padding: 12px 15px; } .category-option { padding: 6px 12px; font-size: 13px; } .subtype-container { grid-template-columns: repeat(2, 1fr); gap: 10px; } .site-card { padding: 10px; } .site-icon { width: 24px; height: 24px; margin-right: 8px; } .site-name { font-size: 13px; } .weather-widget { display: none; } .engine-selector { padding: 3px; } .engine-option { padding: 6px 8px; font-size: 12px; min-width: 40px; } .nav-title-box { padding: 10px 12px; } .nav-title { font-size: 16px; } }

@media (max-width: 360px) { /* 极小屏幕的特殊处理 */ .engine-option { padding: 6px 6px; font-size: 11px; } .search-engines { padding: 0 5px; } }

/* Countdown Timer Box */
.countdown-box { position: fixed; top: 20px; right: 20px; background-color: rgba(255, 255, 255, 0.7); border-radius: 16px; padding: 0 18px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08); color: #333; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; z-index: 1000; width: 150px; height: 60px; backdrop-filter: blur(10px); }

.countdown-box:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); }

#countdown-timer { display: flex; align-items: baseline; justify-content: center; width: 100%; color: #333; font-weight: 600; }

.time-unit { display: flex; flex-direction: column; align-items: center; line-height: 1; }

.time-unit span { display: block; }

#hours, #minutes, #seconds { font-size: 22px; letter-spacing: 2px; }

.time-label { font-size: 12px; font-weight: 500; color: #666; }

.time-separator { font-size: 20px; margin: 0 4px; transform: translateY(-2px); }
