/* Liquid Glass Global Styles */ /* 液态玻璃变量 */ :root { --liquid-glass-bg: rgba(255, 255, 255, 0.15); --liquid-glass-bg-hover: rgba(255, 255, 255, 0.25); --liquid-glass-border: rgba(255, 255, 255, 0.3); --liquid-glass-ring: rgba(255, 255, 255, 0.2); --liquid-glass-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15); --liquid-glass-blur: 40px; /* backdrop-blur-2xl/3xl */ --liquid-glass-saturate: 1.5; --text-primary: #ffffff; --text-secondary: rgba(255, 255, 255, 0.8); --link-color: #60a5fa; /* blue-400 */ --link-hover-color: #93c5fd; /* blue-300 */ } /* 基础液态玻璃类 */ .liquid-glass { background: var(--liquid-glass-bg); backdrop-filter: blur(var(--liquid-glass-blur)) saturate(var(--liquid-glass-saturate)); -webkit-backdrop-filter: blur(var(--liquid-glass-blur)) saturate(var(--liquid-glass-saturate)); border: 1px solid var(--liquid-glass-border); box-shadow: var(--liquid-glass-shadow), inset 0 1px 1px rgba(255, 255, 255, 0.25); border-radius: 1.5rem; /* rounded-2xl */ transition: all 0.3s ease-out; } .liquid-glass:hover { background: var(--liquid-glass-bg-hover); } /* 液态玻璃容器 - 渐变背景 (Blue-Purple) */ .liquid-glass-container { background: linear-gradient(135deg, #2563eb 0%, #9333ea 50%, #ec4899 100%); min-height: 100vh; width: 100%; position: relative; overflow-x: hidden; } /* 边缘高光效果 */ .liquid-glass-highlight { background-image: linear-gradient( to bottom, rgba(255, 255, 255, 0.15), transparent 50% ); pointer-events: none; position: absolute; inset: 0; border-radius: inherit; } /* 胶囊标签样式 */ .liquid-glass-pill { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.375rem 1rem; background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 9999px; font-size: 0.875rem; font-weight: 500; color: white; box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3); } /* General Resets & Typography adapted for Liquid Glass */ body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif; line-height: 1.6; margin: 0; color: var(--text-primary); } a { text-decoration: none; color: var(--link-color); transition: color 0.2s; } a:hover { color: var(--link-hover-color); text-decoration: none !important; } /* Layout */ .wrapper { max-width: 960px; margin: 0 auto; padding: 2rem 1rem; } /* Article Styles */ article { font-size: 16px; line-height: 1.6; word-wrap: break-word; color: var(--text-primary); padding: 2rem; position: relative; } article h1, article h2, article h3, article h4, article h5, article h6 { color: var(--text-primary); margin-top: 1.5em; margin-bottom: 0.5em; font-weight: 600; } article h1 { font-size: 2.25em; line-height: 1.2; } article h2 { font-size: 1.75em; padding-bottom: 0.3em; border-bottom: 1px solid rgba(255,255,255,0.2); } article h3 { font-size: 1.5em; } .info { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 1.5rem; display: flex; align-items: center; } /* Code Blocks */ code { font-family: "JetBrains Mono", "Cascadia Code", Consolas, monospace; font-size: 0.9em; } article code { background: rgba(0, 0, 0, 0.2); color: #e2e8f0; padding: 0.2em 0.4em; border-radius: 0.375rem; } article pre { background: rgba(0, 0, 0, 0.25); padding: 1rem; border-radius: 0.75rem; overflow-x: auto; margin: 1rem 0; border: 1px solid rgba(255, 255, 255, 0.1); } article pre code { background: transparent; padding: 0; color: inherit; font-size: 0.9em; } /* Blockquotes */ article blockquote { margin: 1rem 0; padding: 0.5rem 1rem; border-left: 4px solid rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.05); border-radius: 0 0.5rem 0.5rem 0; color: var(--text-secondary); } /* Tables */ article table { width: 100%; border-collapse: collapse; margin: 1rem 0; } article table th, article table td { border: 1px solid rgba(255, 255, 255, 0.2); padding: 0.75rem; } article table th { background: rgba(255, 255, 255, 0.1); font-weight: 600; } /* Images */ img { max-width: 100%; height: auto; border-radius: 0.75rem; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); } /* Helpers */ .shadow { box-shadow: var(--liquid-glass-shadow); } /* Specific elements from original CSS that might be needed */ .columns { display: flex; justify-content: center; } .column { width: 100%; max-width: 960px; } /* Scrollbar customization for webkit */ ::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.1); } ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.3); border-radius: 4px; } ::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.5); }