/* ============================================ SDF1 App Shell — Gold & Obsidian Theme ============================================ */ :root { --bg-deep: #06060b; --bg-surface: #0e0e18; --bg-card: #14141f; --gold: #c9a44a; --gold-dim: #a08339; --gold-glow: rgba(201, 164, 74, 0.15); --text-primary: #e8e4dc; --text-muted: #6b6878; --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px); } * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; } html, body { width: 100%; height: 100%; overflow: hidden; background: var(--bg-deep); font-family: 'Noto Sans SC', 'Outfit', sans-serif; color: var(--text-primary); -webkit-font-smoothing: antialiased; } /* ---- Utilities ---- */ .hidden { display: none !important; } /* ---- Splash Screen ---- */ .splash { position: fixed; inset: 0; z-index: 9999; background: var(--bg-deep); display: flex; align-items: center; justify-content: center; transition: opacity 0.5s ease, visibility 0.5s ease; } .splash.fade-out { opacity: 0; visibility: hidden; } .splash-inner { text-align: center; animation: splashReveal 0.8s ease forwards; } @keyframes splashReveal { from { opacity: 0; transform: translateY(16px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } } .splash-icon { width: 80px; height: 80px; margin: 0 auto 24px; animation: iconPulse 2s ease-in-out infinite; } @keyframes iconPulse { 0%, 100% { transform: scale(1); filter: drop-shadow(0 0 8px var(--gold-glow)); } 50% { transform: scale(1.05); filter: drop-shadow(0 0 20px var(--gold-glow)); } } .splash-title { font-family: 'Outfit', sans-serif; font-size: 32px; font-weight: 700; letter-spacing: 0.15em; color: var(--gold); margin-bottom: 4px; } .splash-sub { font-size: 14px; font-weight: 300; color: var(--text-muted); letter-spacing: 0.3em; text-transform: uppercase; } .splash-loader { width: 140px; height: 2px; background: rgba(201, 164, 74, 0.12); border-radius: 2px; margin: 36px auto 0; overflow: hidden; } .loader-bar { width: 0%; height: 100%; background: linear-gradient(90deg, var(--gold-dim), var(--gold)); border-radius: 2px; animation: loaderGrow 2.5s ease forwards; } @keyframes loaderGrow { 0% { width: 0%; } 60% { width: 70%; } 100% { width: 100%; } } /* ---- WebView Container ---- */ .webview-container { position: fixed; inset: 0; z-index: 1; } .webview-container web-view, .webview-container iframe { width: 100%; height: 100%; border: none; } /* ---- Error Page ---- */ .error-page { position: fixed; inset: 0; z-index: 100; background: var(--bg-deep); display: flex; align-items: center; justify-content: center; } .error-inner { text-align: center; padding: 40px; animation: fadeUp 0.5s ease forwards; } @keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .error-icon { width: 64px; height: 64px; margin-bottom: 24px; } .error-inner h2 { font-family: 'Outfit', sans-serif; font-size: 22px; font-weight: 500; color: var(--text-primary); margin-bottom: 8px; } .error-inner p { font-size: 14px; color: var(--text-muted); margin-bottom: 36px; } .retry-btn { display: inline-block; padding: 14px 48px; border: 1px solid var(--gold-dim); background: transparent; color: var(--gold); font-family: 'Noto Sans SC', sans-serif; font-size: 15px; font-weight: 400; letter-spacing: 0.08em; border-radius: 6px; cursor: pointer; transition: all 0.25s ease; } .retry-btn:active { background: var(--gold); color: var(--bg-deep); transform: scale(0.97); } /* ---- Bottom Bar ---- */ .bottom-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 500; display: flex; justify-content: space-around; align-items: center; height: 56px; padding-bottom: var(--safe-bottom); background: linear-gradient(180deg, rgba(14,14,24,0.92) 0%, rgba(14,14,24,0.98) 100%); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid rgba(201, 164, 74, 0.1); } .bar-btn { display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: none; color: var(--text-muted); font-family: 'Noto Sans SC', sans-serif; font-size: 10px; cursor: pointer; padding: 6px 16px; transition: color 0.2s ease; -webkit-tap-highlight-color: transparent; } .bar-btn svg { width: 22px; height: 22px; } .bar-btn.active { color: var(--gold); } .bar-btn:active { transform: scale(0.9); } /* ---- 纹理叠加 ---- */ body::after { content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E"); background-size: 128px 128px; opacity: 0.025; }