@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

:root { --bg-color: #0f172a; --glass-bg: rgba(30, 41, 59, 0.7); --glass-border: rgba(255, 255, 255, 0.08); --glass-highlight: rgba(255, 255, 255, 0.15); --primary: #6366f1; --accent: #ec4899; --text-main: #f8fafc; --text-sub: #94a3b8; --card-radius: 20px; }
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', 'Noto Sans SC', sans-serif; -webkit-tap-highlight-color: transparent; }
body { background-color: var(--bg-color); color: var(--text-main); min-height: 100vh; overflow-x: hidden; position: relative; }
.bg-glow { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; overflow: hidden; }
.glow-blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4; animation: float 15s infinite alternate; }
.glow-1 { top: -10%; left: -10%; width: 50vw; height: 50vw; background: #4f46e5; }
.glow-2 { bottom: -10%; right: -10%; width: 40vw; height: 40vw; background: #db2777; animation-delay: -5s; }
.glow-3 { top: 40%; left: 40%; width: 30vw; height: 30vw; background: #0ea5e9; animation-delay: -10s; }
@keyframes float { 0% { transform: translate(0,0); } 100% { transform: translate(30px, 50px); } }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.4); }
#preloader { position: fixed; inset: 0; background: #0f172a; z-index: 9999; display: flex; justify-content: center; align-items: center; flex-direction: column; transition: opacity 0.8s ease; }
.loader-logo { font-size: 40px; font-weight: 800; background: linear-gradient(to right, #6366f1, #ec4899); -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: pulse 2s infinite; }
.loader-bar { width: 150px; height: 4px; background: rgba(255,255,255,0.1); border-radius: 4px; margin-top: 20px; overflow: hidden; }
.loader-progress { width: 0%; height: 100%; background: var(--primary); animation: progress 1.5s ease-in-out forwards; }
@keyframes progress { 0% { width: 0%; } 100% { width: 100%; } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.95); opacity: 0.7; } }
.glass { background: var(--glass-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--glass-border); box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3); }
.sidebar { width: 280px; height: 100vh; position: fixed; left: 0; top: 0; z-index: 100; display: flex; flex-direction: column; border-right: 1px solid var(--glass-border); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(15px); }
.sidebar-head { height: 200px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; background: url('https://image.lolimi.cn/2025/04/04/67ef567e77960.jpg') center/cover; }
.sidebar-head::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, #0f172a, transparent); }
.avatar { width: 80px; height: 80px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.8); z-index: 1; box-shadow: 0 0 20px rgba(99, 102, 241, 0.5); object-fit: cover; transition: 0.3s; }
.avatar:hover { transform: rotate(360deg); }
.site-info { z-index: 1; text-align: center; margin-top: 10px; }
.site-info h2 { font-size: 20px; font-weight: 700; color: white; }
.site-info p { font-size: 12px; color: #cbd5e1; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 20px 15px; }
.nav-item { display: flex; align-items: center; padding: 14px 16px; margin-bottom: 5px; color: var(--text-sub); text-decoration: none; border-radius: 12px; transition: 0.3s; font-size: 14px; font-weight: 500; }
.nav-item i { width: 24px; margin-right: 10px; font-size: 16px; transition: 0.3s; }
.nav-item:hover, .nav-item.active { background: rgba(99, 102, 241, 0.1); color: white; }
.nav-item:hover i { color: var(--accent); transform: scale(1.1); }
.main { margin-left: 280px; padding: 30px; min-height: 100vh; position: relative; z-index: 1; }
.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; padding: 20px; border-radius: var(--card-radius); }
.welcome h1 { font-size: 24px; font-weight: 700; background: linear-gradient(to right, #fff, #94a3b8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.search-wrap { position: relative; width: 350px; }
.search-input { width: 100%; padding: 14px 20px 14px 45px; background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); border-radius: 50px; color: white; transition: 0.3s; outline: none; }
.search-input:focus { background: rgba(255,255,255,0.1); border-color: var(--primary); box-shadow: 0 0 15px rgba(99, 102, 241, 0.3); }
.search-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--text-sub); }
.partners-bar { margin-bottom: 40px; }
.sec-title { font-size: 14px; letter-spacing: 1px; color: var(--accent); margin-bottom: 15px; text-transform: uppercase; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.sec-title::after { content: ''; height: 1px; flex: 1; background: linear-gradient(to right, var(--glass-border), transparent); }
.partner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.partner-card { display: flex; align-items: center; gap: 15px; padding: 20px; border-radius: 16px; text-decoration: none; color: white; transition: 0.3s; position: relative; overflow: hidden; }
.partner-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(45deg, transparent, rgba(255,255,255,0.05), transparent); transform: translateX(-100%); transition: 0.5s; }
.partner-card:hover::before { transform: translateX(100%); }
.partner-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.partner-img { width: 150px; height: 50px; border-radius: 8px; }
.api-container { min-height: 400px; }
.api-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; width: 100%; }
.api-card { border-radius: var(--card-radius); padding: 25px; display: flex; flex-direction: column; position: relative; transition: 0.4s; height: 100%; }
.api-card:hover { background: rgba(30, 41, 59, 0.9); transform: translateY(-10px) scale(1.02); border-color: var(--primary); box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.3); z-index: 10; }
.card-top { display: flex; align-items: center; margin-bottom: 20px; }
.api-icon { width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: white; margin-right: 15px; background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); }
.api-info h3 { font-size: 18px; font-weight: 600; color: white; margin-bottom: 5px; }
.api-info span { font-size: 12px; color: var(--text-sub); background: rgba(255,255,255,0.05); padding: 2px 8px; border-radius: 4px; }
.api-desc { font-size: 14px; color: var(--text-sub); line-height: 1.6; margin-bottom: 25px; flex-grow: 1; }
.card-btm { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--glass-border); }
.status { font-size: 13px; display: flex; align-items: center; gap: 6px; }
.status.on { color: #10b981; }
.status.off { color: #f43f5e; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.btn-doc { padding: 8px 18px; border-radius: 50px; background: rgba(255,255,255,0.05); color: white; text-decoration: none; font-size: 13px; border: 1px solid var(--glass-border); transition: 0.3s; }
.btn-doc:hover { background: var(--primary); border-color: var(--primary); }
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 50px; }
.page-btn { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); color: var(--text-sub); cursor: pointer; transition: 0.3s; }
.page-btn:hover:not(:disabled) { background: var(--primary); color: white; border-color: var(--primary); }
.page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.sponsors-wall { margin-top: 60px; margin-bottom: 30px; }
.sponsor-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px; }
.sponsor-chip { background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border); padding: 15px; border-radius: 12px; text-align: center; text-decoration: none; color: var(--text-sub); transition: 0.3s; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.sponsor-chip img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.sponsor-chip:hover { background: rgba(255,255,255,0.08); transform: translateY(-3px); color: white; border-color: var(--accent); }
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); z-index: 1000; display: none; justify-content: center; align-items: center; opacity: 0; transition: 0.3s; }
.modal-mask.show { opacity: 1; }
.modal-box { width: 90%; max-width: 550px; background: #1e293b; border: 1px solid var(--glass-border); border-radius: 20px; padding: 30px; transform: scale(0.9); transition: 0.3s; box-shadow: 0 20px 50px rgba(0,0,0,0.5); position: relative; }
.modal-mask.show .modal-box { transform: scale(1); }
.modal-close { position: absolute; top: 20px; right: 20px; cursor: pointer; color: #64748b; font-size: 20px; }
.modal-close:hover { color: white; }
.modal-title { font-size: 20px; font-weight: 700; color: white; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.modal-content { color: var(--text-sub); line-height: 1.7; max-height: 60vh; overflow-y: auto; font-size: 15px; }
.mob-btn { display: none; position: fixed; right: 20px; top: 20px; z-index: 200; width: 40px; height: 40px; background: var(--primary); border: none; border-radius: 10px; color: white; font-size: 18px; }
@media (max-width: 900px) { .sidebar { transform: translateX(-100%); width: 280px; } .sidebar.active { transform: translateX(0); } .main { margin-left: 0; padding: 20px; } .mob-btn { display: block; } .header { flex-direction: column; align-items: flex-start; gap: 20px; } .search-wrap { width: 100%; } }
.api-card.animate-in { animation: fadeInUp 0.5s ease-out forwards; opacity: 0; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.pagination a { display: flex; justify-content: center; align-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); color: var(--text-sub); text-decoration: none; transition: 0.3s; }
.pagination a:hover { background: var(--primary); color: white; border-color: var(--primary); }
.pagination a.active { background: var(--primary); color: white; border-color: var(--primary); pointer-events: none; }

/* Weather Widget CSS */
#wdg-root { --w-width: 360px; --w-bg: rgba(30, 30, 30, 0.85); --w-border: rgba(255, 255, 255, 0.12); --w-text: #ffffff; --w-sub: rgba(255, 255, 255, 0.75); font-family: 'Roboto', sans-serif; position: fixed; bottom: 30px; right: 30px; z-index: 9000; display: flex; flex-direction: column; align-items: flex-end; gap: 15px; pointer-events: none; user-select: none; -webkit-font-smoothing: antialiased; }
.wdg-btn { padding: 8px 16px; height: 44px; border-radius: 22px; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--w-border); box-shadow: 0 10px 25px rgba(0,0,0,0.2); cursor: pointer; display: flex; align-items: center; gap: 8px; position: relative; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); pointer-events: auto; overflow: hidden; color: var(--w-text); }
.wdg-btn:hover { background: rgba(255, 255, 255, 0.15); transform: translateY(-2px); box-shadow: 0 15px 35px rgba(0,0,0,0.3); }
.wdg-btn.wdg-active { background: var(--primary); border-color: var(--primary); box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4); }
.wdg-btn-icon { font-size: 18px; } /* 移除了默认动画 */
.wdg-btn-temp { font-size: 16px; font-weight: 700; }
.wdg-card { width: var(--w-width); background: var(--w-bg); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); border: 1px solid var(--w-border); border-radius: 28px; padding: 28px; box-shadow: 0 30px 60px rgba(0,0,0,0.5); opacity: 0; transform: translateY(20px) scale(0.9); transform-origin: bottom right; transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden; color: var(--w-text); pointer-events: none; }
.wdg-card.wdg-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.wdg-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--w-grad); opacity: 0.25; z-index: 0; transition: background 0.6s ease; }
.wdg-anim { position: absolute; top: -20px; right: -20px; width: 160px; height: 160px; opacity: 0.8; z-index: 0; pointer-events: none; display: flex; justify-content: center; align-items: center; font-size: 100px; color: rgba(255,255,255,0.2); }
.wdg-icon-big { filter: drop-shadow(0 0 20px rgba(255,255,255,0.3)); }
.wdg-inner { position: relative; z-index: 2; }
.wdg-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--w-sub); font-weight: 500; margin-bottom: 20px; letter-spacing: 0.5px; }
.wdg-main { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.wdg-temp-box { display: flex; align-items: flex-start; }
.wdg-val { font-size: 64px; font-weight: 100; line-height: 0.9; letter-spacing: -3px; }
.wdg-unit { font-size: 24px; margin-top: 5px; font-weight: 300; opacity: 0.8; }
.wdg-weather-info { text-align: right; }
.wdg-pill { font-size: 18px; font-weight: 700; background: rgba(255,255,255,0.1); padding: 8px 18px; border-radius: 50px; border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(5px); display: inline-block; margin-bottom: 8px; }
.wdg-range { font-size: 13px; color: var(--w-sub); }
.wdg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 15px; }
.wdg-cell { background: rgba(255,255,255,0.05); padding: 12px 16px; border-radius: 16px; display: flex; flex-direction: column; gap: 4px; border: 1px solid rgba(255,255,255,0.05); }
.wdg-k { font-size: 11px; color: var(--w-sub); text-transform: uppercase; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.wdg-v { font-size: 15px; font-weight: 600; }
.wdg-full { background: rgba(255,255,255,0.05); padding: 12px 16px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.05); }
.wdg-alert-box { background: rgba(220, 38, 38, 0.15); border: 1px solid rgba(220, 38, 38, 0.3); padding: 12px 16px; border-radius: 16px; margin-bottom: 15px; }
.alert-item { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.alert-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.alert-title { font-size: 13px; font-weight: 700; color: #fca5a5; margin-bottom: 4px; }
.alert-desc { font-size: 12px; line-height: 1.4; color: rgba(255,255,255,0.85); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wdg-tip { font-size: 12px; line-height: 1.5; color: rgba(255,255,255,0.9); }
@media (max-width: 480px) { #wdg-root { right: 15px; bottom: 15px; } .wdg-card { width: calc(100vw - 30px); } }
@keyframes wdg-spin-slow { 100% { transform: rotate(360deg); } }
@keyframes wdg-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes wdg-rain { 0% { transform: translateY(-20px); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateY(20px); opacity: 0; } }
