:root { --bg-color: #f8f9fa; --card-bg-color: #ffffff; --text-color: #334155; --secondary-text-color: #64748b; --primary-accent-green: #22c55e; --primary-accent-red: #e74c4c; --secondary-accent: #e0e4e8; --error-accent: #ef4444; --success-accent: #22c55e; --font-family: -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", "PingFang SC", "Microsoft YaHei"; --spinner-border-color: var(--secondary-accent); --shadow-light: rgba(0, 0, 0, 0.1);}* { margin: 0; padding: 0; box-sizing: border-box;}html, body { height: 100%; width: 100%; overflow: hidden;}body { background-color: var(--bg-color); color: var(--text-color); font-family: var(--font-family); display: flex; justify-content: center; align-items: center; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;}.modern-container { width: min(90%, 550px); padding: 25px 35px; background-color: var(--card-bg-color); border-radius: 12px; box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07), 0 3px 10px rgba(0, 0, 0, 0.04); text-align: center; border: 1px solid var(--secondary-accent); display: none; flex-direction: column; align-items: center; min-height: 210px; justify-content: center; transition: min-height 0.3s ease-in-out, padding 0.3s ease-in-out, width 0.3s ease-in-out; flex-shrink: 0; margin-top: -50px; opacity: 0; animation: fade-in-up 0.5s ease-out forwards;}.modern-container.is-error-state { min-height: 300px; padding-top: 25px; padding-bottom: 25px; justify-content: space-between;}@keyframes fade-in-up { from { opacity: 0; } to { opacity: 1; }}.modern-loading-view { width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; padding: 20px 0; gap: 40px;}.modern-error-view { width: 100%; display: none; flex-direction: column; align-items: center; justify-content: center; flex: 1; padding: 15px 0; gap: 12px;}.spinner { width: 60px; height: 60px; border: 6px solid var(--spinner-border-color); border-top: 6px solid var(--primary-accent-red); border-radius: 50%; animation: spin 1.2s cubic-bezier(.4,0,.2,1) infinite; box-shadow: 0 0 10px var(--shadow-light); display: inline-block;}@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); }}.modern-status-main { font-size: 1.2rem; font-weight: 400; color: var(--secondary-text-color); min-height: 30px; display: flex; align-items: center; justify-content: center; text-align: center; width: 100%;}.error-icon-wrapper { width: 55px; height: 55px; display: flex; justify-content: center; align-items: center; margin: 0 auto;}#errorIconSvg { width: 100%; height: 100%; stroke: var(--error-accent); stroke-width: 1.8; fill: none; animation: error-pop 0.5s ease-out forwards;}@keyframes error-pop { 0% { transform: scale(0.8); opacity: 0; } 50% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1); opacity: 1; }}.modern-error-title { font-size: 1.5rem; font-weight: 700; color: var(--error-accent); text-align: center; width: 100%;}.modern-error-message { font-size: 0.95rem; color: var(--secondary-text-color); line-height: 1.5; max-width: 90%; text-align: center; margin: 0 auto; min-height: 40px; display: flex; align-items: center; justify-content: center;}.modern-error-message p { text-align: center; margin: 0; padding: 0; width: 100%;}.modern-error-message a { color: var(--primary-accent-green); text-decoration: none; transition: color 0.2s ease-in-out;}.modern-error-message a:hover { color: var(--success-accent); text-decoration: underline;}.modern-button-group { display: flex; gap: 15px; margin-top: 15px; width: 100%; justify-content: center; flex-wrap: nowrap;}.modern-button { padding: 12px 30px; font-size: 1.05rem; font-weight: 600; border: none; border-radius: 8px; cursor: pointer; transition: background-color 0.2s, box-shadow 0.2s, transform 0.1s; min-width: 130px; flex: 1 1 auto; max-width: 50%; box-sizing: border-box; white-space: nowrap;}@media (max-width: 768px) { .modern-container { width: min(95%, 450px); padding: 20px 25px; } .modern-loading-view { gap: 30px; }}@media (max-width: 320px) { .modern-container { padding: 12px 15px; min-height: 180px; } .modern-container.is-error-state { min-height: 280px; padding-top: 20px; padding-bottom: 20px; } .modern-loading-view { gap: 20px; padding: 15px 0; } .modern-error-view { gap: 8px; padding: 10px 0; } .modern-button { font-size: 0.95rem; padding: 10px 20px; min-width: 100px; } .modern-status-main { font-size: 1rem; font-weight: 400; color: var(--secondary-text-color); } .modern-error-title { font-size: 1.2rem; } .modern-error-message { font-size: 0.85rem; line-height: 1.4; min-height: 36px; } .spinner { width: 48px; height: 48px; border: 4px solid var(--spinner-border-color); border-top: 4px solid var(--primary-accent-red); } .error-icon-wrapper { width: 50px; height: 50px; } .modern-button-group { gap: 10px; margin-top: 10px; }}.modern-button-retry { background-color: var(--error-accent); color: white;}.modern-button-retry:hover { background-color: #dc2626;}.modern-button-backup { background-color: var(--primary-accent-green); color: white;}.modern-button-backup:hover { background-color: #16a34a;}#browserOverlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(255, 255, 255, 0.98); color: var(--text-color); z-index: 10000; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 20px; overflow: hidden; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); animation: fadeInOverlay 0.3s ease-out forwards; display: none;}@keyframes fadeInOverlay { from { opacity: 0; } to { opacity: 1; }}#browserOverlay h2 { font-size: 1.7rem; font-weight: 700; color: var(--primary-accent-green); margin-bottom: 12px; margin-top: 40px;}#browserOverlay p { font-size: 1rem; line-height: 1.6; max-width: 300px; color: var(--secondary-text-color); margin: 0 auto 20px auto; padding: 0 15px;}#browserOverlay button { padding: 10px 25px; font-size: 0.95rem; background-color: var(--primary-accent-green); color: white; border: none; border-radius: 8px; cursor: pointer; transition: background-color 0.2s, box-shadow 0.2s, transform 0.1s; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);}#browserOverlay button:hover { background-color: #16a34a; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);}#browserOverlay button:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);}.wechat-guidance { position: absolute; top: 15px; right: 15px; display: flex; flex-direction: column; align-items: flex-end; color: var(--secondary-text-color); font-size: 0.8rem; opacity: 0; animation: fadeInDown 0.8s ease-out 0.5s forwards;}@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); }}.wechat-guidance svg { width: 70px; height: 70px; stroke: var(--primary-accent-green); stroke-width: 2.2; fill: none; margin-bottom: 3px; transform: rotate(0deg);}#customToast { position: fixed; bottom: 50px; left: 50%; transform: translateX(-50%) translateY(20px); background-color: rgba(51, 65, 85, 0.95); color: #ffffff; padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 500; z-index: 10000; opacity: 0; transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out; white-space: nowrap; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); display: none;}@keyframes toast-show { from { opacity: 0; transform: translateX(-50%) translateY(20px); } to { opacity: 1; transform: translateX(-50%) translateY(0); }}@keyframes toast-hide { from { opacity: 1; transform: translateX(-50%) translateY(0); } to { opacity: 0; transform: translateX(-50%) translateY(20px); }}#customToast.show { display: block; animation: toast-show 0.3s ease-out forwards;}#customToast.hide { animation: toast-hide 0.3s ease-in forwards;}