:root { --color-primary: #c84000; --color-primary-hover: #b33800; --color-white: #ffffff; --color-gray-100: #f8f9fa; --color-gray-200: #e9ecef; --color-gray-300: #dee2e6; --color-gray-600: #6c757d; --color-gray-800: #343a40; --color-gray-900: #212529; --bg: #fffaf2; --surface: rgba(255, 255, 255, 0.88); --surface-muted: #f7efe2; --ink: var(--color-gray-900); --muted: var(--color-gray-600); --line: #e1d2bd; --accent: var(--color-primary); --accent-deep: #8b3919; --good: #195d3a; --warn: #8f5c00; --shadow: 0 18px 40px rgba(27, 21, 14, 0.08); --font-sans: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; --hero-point-bg: rgba(255, 255, 255, 0.68); } html { font-family: var(--font-sans); } html[data-theme="dark"] { --bg: #1d232b; --surface: rgba(37, 45, 55, 0.92); --surface-muted: #2b3440; --ink: #f8f9fa; --muted: #adb5bd; --line: #485361; --accent: #ff6f2c; --accent-deep: #ff925f; --shadow: 0 18px 40px rgba(0, 0, 0, 0.28); --hero-point-bg: #232c36; } * { box-sizing: border-box; } body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--bg); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } a { color: var(--accent-deep); text-decoration: none; } a:hover { color: var(--accent); } .shell { width: min(1120px, calc(100vw - 2rem)); margin: 0 auto; padding-bottom: 3rem; } .topbar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); } .topbar-inner { position: relative; width: min(1120px, calc(100vw - 2rem)); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 0; } .topbar-left { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; } .topnav { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; } .nav-dropdown { } .nav-dropdown summary { list-style: none; cursor: pointer; color: var(--accent-deep); } .nav-dropdown summary::-webkit-details-marker { display: none; } .nav-dropdown summary::after { content: " ▾"; } .nav-dropdown[open] summary::after { content: " ▴"; } .nav-dropdown-menu { position: absolute; top: calc(100% + 0.5rem); left: 0; width: min(1060px, calc(100vw - 2rem)); padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 22px; background: var(--bg); box-shadow: var(--shadow); z-index: 20; } .nav-mega-menu { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.25rem 2rem; } .nav-dropdown-menu .footer-group { min-width: 0; } .nav-dropdown-menu .footer-group-title { margin: 0 0 0.8rem; } .nav-dropdown-menu .footer-group-links { display: grid; gap: 0.1rem; } .nav-dropdown-menu a { display: block; padding: 0.2rem 0.6rem; border-radius: 12px; color: var(--ink); } .nav-dropdown-menu a:hover { background: var(--surface-muted); color: var(--ink); } .topnav-actions { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; } .brand { display: inline-flex; align-items: center; } .brand-logo { height: 42px; width: auto; } .brand-logo-dark { display: none; } html[data-theme="dark"] .brand-logo-light { display: none; } html[data-theme="dark"] .brand-logo-dark { display: block; } .hero, .card, form { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); } .hero { padding: 2.25rem; } .tool-grid, .two-col, .list, .detail-grid { display: grid; gap: 1rem; } .tool-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 1rem 0 2rem; } .two-col { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } .detail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .card, form { padding: 1.25rem; } .card h3, .hero h1, .card h2 { margin-top: 0; line-height: 1.2; } .muted { color: var(--muted); } .tool-prose { margin-top: 2rem; line-height: 1.75; max-width: 72ch; } .tool-prose h2 { margin-top: 2rem; margin-bottom: 0.4rem; font-size: 1.2rem; } .tool-prose h3 { margin-top: 1.4rem; margin-bottom: 0.25rem; font-size: 1rem; } .tool-prose p { margin-top: 0; margin-bottom: 0.9rem; } .tool-prose ul, .tool-prose ol { padding-left: 1.5rem; margin-top: 0; margin-bottom: 0.9rem; } .tool-prose li + li { margin-top: 0.25rem; } .tool-prose code { font-family: monospace; font-size: 0.9em; background: var(--line); border-radius: 4px; padding: 0.1em 0.3em; } .pill, .tag { display: inline-flex; align-items: center; border-radius: 10px; background: #efe1cf; color: var(--accent-deep); } .pill { padding: 0.45rem 0.75rem; font-size: 0.92rem; } .tag { padding: 0.5rem 0.75rem; font-size: 0.82rem; margin-bottom: 0.75rem; } .button, button, .theme-toggle { appearance: none; border: 0; border-radius: 10px; background: var(--accent); color: white; text-decoration: none; padding: 0.75rem 1rem; cursor: pointer; font: inherit; font-weight: 700; text-align: center; transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease, border-color 0.2s ease; } .button:hover, button:hover, .theme-toggle:hover { background: var(--color-primary-hover); transform: translateY(-1px); color: var(--color-white); } .button.secondary, .theme-toggle { background: var(--surface-muted); color: var(--ink); border: 1px solid var(--line); } .button.secondary:hover { background: var(--surface); color: var(--ink); border-color: var(--accent); } .login-button { background: var(--accent); color: var(--color-white); box-shadow: 0 10px 24px rgba(240, 74, 0, 0.24); } .login-button:hover { background: var(--color-primary-hover); color: var(--color-white); box-shadow: 0 14px 30px rgba(217, 67, 4, 0.3); } .theme-toggle { min-width: 46px; padding: 0.75rem 1rem; } .theme-toggle:hover { background: var(--surface); color: var(--ink); border-color: var(--accent); } .inline-form { margin: 0; padding: 0; background: none; border: 0; box-shadow: none; } main { padding-bottom: 4rem; } section { margin: 1.5rem 0; } .breadcrumbs { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; margin: 1rem 0 0; color: var(--muted); font-size: 0.95rem; } .breadcrumbs a { color: var(--muted); } .breadcrumbs a:hover { color: var(--accent); } .breadcrumbs-separator { color: var(--line); } input:not([type="radio"]):not([type="checkbox"]):not([type="file"]), textarea, select { width: 100%; padding: 0.8rem 0.9rem; border-radius: 12px; border: 1px solid var(--line); background: white; font: inherit; } html[data-theme="dark"] input, html[data-theme="dark"] textarea, html[data-theme="dark"] select { background: #f8f9fa; color: #212529; } textarea { min-height: 160px; resize: vertical; } label { display: block; margin: 0.9rem 0 0.35rem; font-weight: 600; } .notice { padding: 0.95rem 1rem; border-radius: 14px; background: #fff3d6; border: 1px solid #e9d19b; } .success { background: #e9f6ee; border-color: #9bc9ab; color: var(--good); } .result { white-space: pre-wrap; padding: 1rem; background: #201d18; color: #fdf9f1; border-radius: 14px; min-height: 60px; } .list-item { padding: 0.9rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,0.7); } .editor-layout { display: grid; grid-template-columns: var(--editor-sidebar-width, 280px) minmax(0, 1fr); gap: 1rem; align-items: start; } .editor-layout.sidebar-closed { grid-template-columns: minmax(0, 1fr); } .editor-sidebar { position: relative; min-height: 420px; padding: 1rem; } .editor-layout.sidebar-closed .editor-sidebar { display: none; } .editor-resizer { position: absolute; top: 16px; right: -8px; width: 16px; height: calc(100% - 32px); cursor: col-resize; } .editor-sidebar-list { display: grid; gap: 0.5rem; margin-top: 1rem; } .editor-sidebar-link { display: block; padding: 0.8rem 0.9rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-muted); color: var(--ink); } .editor-sidebar-link.active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); } .editor-tabs { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1rem; } .editor-tab { display: inline-flex; align-items: center; padding: 0.7rem 0.95rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-muted); color: var(--ink); } .editor-tab.active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); } .editor-topbar { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; } .editor-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; } .site-footer { color: var(--muted); padding: 3rem 0 2rem; margin-top: 4rem; background: var(--surface-muted); border-top: 1px solid var(--line); }
.footer-powered-by { width: min(1120px, calc(100vw - 2rem)); margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); text-align: right; }
.footer-powered-by a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.footer-powered-by a:hover { color: var(--accent); } .footer-wrap { width: min(1120px, calc(100vw - 2rem)); margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 2rem; align-items: start; } .footer-menu { display: contents; } .footer-group { min-width: 0; } .footer-group-title { margin: 0 0 0.8rem; font-size: 0.9rem; font-weight: 800; line-height: 1.2; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); } .footer-group-links { display: grid; gap: 0.1rem; } .footer-menu a { display: block; padding: 0.2rem 0; color: var(--ink); } .footer-menu a:hover { color: var(--accent); } .footer-action { display: flex; justify-content: flex-start; min-width: 0; margin-top: 1.25rem; } footer { color: var(--muted); padding: 2rem 0 1rem; } @media (max-width: 840px) { .topbar { align-items: flex-start; flex-direction: column; } .topnav-actions { justify-content: flex-start; } .nav-dropdown-menu { position: static; margin-top: 0.5rem; width: 100%; min-width: 0; padding: 0.9rem; } .nav-mega-menu { grid-template-columns: 1fr; gap: 1rem; } .footer-wrap { grid-template-columns: 1fr; } .footer-action { justify-content: flex-start; } .detail-grid { grid-template-columns: 1fr; } .editor-layout, .editor-layout.sidebar-closed { grid-template-columns: 1fr; } .editor-sidebar { min-height: auto; } .editor-resizer { display: none; } .ref-body { flex-direction: column; } .ref-sidebar { position: static; width: 100%; border-left: none; border-top: 1px solid var(--line); padding: 1.25rem 0 0; margin-top: 2rem; } .ref-grid { grid-template-columns: 1fr; } } .ref-body { display: flex; gap: 3rem; align-items: flex-start; margin-top: 1.5rem; } .ref-content { flex: 1; min-width: 0; } .ref-content h2 { font-size: 1.2rem; margin: 2rem 0 0.6rem; border-bottom: 1px solid var(--line); padding-bottom: 0.4rem; } .ref-content h2:first-child { margin-top: 0; } .ref-content h3 { font-size: 1rem; margin: 1.5rem 0 0.4rem; color: var(--ink); } .ref-content p { line-height: 1.75; margin: 0.6rem 0; } .ref-content ul, .ref-content ol { padding-left: 1.5rem; line-height: 1.8; } .ref-content li { margin: 0.25rem 0; } .ref-content section { margin: 0 0 2rem; } .ref-sidebar { width: 240px; flex-shrink: 0; position: sticky; top: 5rem; } .ref-sidebar-card { background: var(--surface-muted); border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem; margin-bottom: 1rem; } .ref-sidebar-card h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 0.75rem; } .ref-sidebar-card ul { list-style: none; padding: 0; margin: 0; } .ref-sidebar-card li { margin: 0.35rem 0; font-size: 0.9rem; } .ref-example { background: var(--surface-muted); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.25rem; margin: 0.75rem 0; overflow-x: auto; } .ref-example pre { margin: 0; font-size: 0.875rem; line-height: 1.7; white-space: pre; } .ref-example code { font-family: ui-monospace, "Cascadia Code", "Fira Code", monospace; } .ref-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 0.75rem 0; } .ref-table th { text-align: left; padding: 0.5rem 0.75rem; background: var(--surface-muted); border-bottom: 2px solid var(--line); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); } .ref-table td { padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; } .ref-table tr:last-child td { border-bottom: none; } .ref-table code { font-size: 0.82rem; background: var(--surface-muted); padding: 0.1em 0.35em; border-radius: 4px; } .ref-faq { margin-top: 2.5rem; border-top: 1px solid var(--line); padding-top: 1.5rem; } .ref-faq h2 { font-size: 1.2rem; margin: 0 0 1rem; } .ref-faq details { border-bottom: 1px solid var(--line); } .ref-faq summary { cursor: pointer; padding: 0.75rem 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; } .ref-faq summary::-webkit-details-marker { display: none; } .ref-faq summary::after { content: "+"; color: var(--muted); font-size: 1.2rem; flex-shrink: 0; } .ref-faq details[open] summary::after { content: "−"; } .ref-faq .faq-answer { padding: 0 0 1rem; line-height: 1.75; color: var(--ink); } .ref-badge { display: inline-block; padding: 0.2em 0.65em; border-radius: 6px; font-family: ui-monospace, monospace; font-size: 0.8em; font-weight: 700; background: var(--accent); color: #fff; letter-spacing: 0.03em; } .ref-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin-top: 1.5rem; margin-bottom: 2.25rem; } .ref-card { display: flex; flex-direction: column; gap: 0.35rem; padding: 1.1rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); transition: border-color 0.15s, box-shadow 0.15s; } .ref-card:hover { border-color: var(--accent); box-shadow: var(--shadow); color: var(--ink); } .ref-card strong { font-size: 0.95rem; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.ref-card strong::after { content: "→"; color: var(--muted); font-weight: 400; flex-shrink: 0; } .ref-card .muted { font-size: 0.85rem; } .ref-sibling-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.25rem 0 0.25rem; overflow-x: auto; padding-bottom: 0.25rem; } .ref-sibling-pill { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.35em 0.85em; border-radius: 100px; border: 1px solid var(--line); font-size: 0.85rem; text-decoration: none; color: var(--ink); background: var(--surface); white-space: nowrap; transition: border-color 0.15s, background 0.15s; } .ref-sibling-pill:hover { border-color: var(--accent); color: var(--accent); background: var(--surface-muted); } .ref-sibling-pill--active { border-color: var(--accent); background: var(--accent); color: #fff; font-weight: 600; pointer-events: none; } .ref-sibling-pill--active:hover { color: #fff; } .ref-sibling-badge { font-family: ui-monospace, monospace; font-size: 0.75em; font-weight: 700; opacity: 0.85; }
