/* ========================================================================== ADB Device Manager - Installation Guide CSS Implements a strict editorial design system matching trust_center.css: - Narrower content (max-width: 820px) - Strict spacing scale - High visual rhythm and whitespace - Dynamic platform selection tabs and responsive panels ========================================================================== */ :root { --color-primary: #2563eb; --color-primary-hover: #1d4ed8; --color-bg-page: #ffffff; --color-bg-card: #fafafa; --color-text-title: #111111; --color-text-body: #444444; --color-text-muted: #666666; --color-border: #eaeaea; --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; /* Theme tokens */ --color-header-bg: rgba(255, 255, 255, 0.85); --color-border-hover: #cbd5e1; --color-nav-hover-bg: #f0f7ff; } [data-theme="dark"] { --color-bg-page: #0b0f19; --color-bg-card: #131b2e; --color-text-title: #f8fafc; --color-text-body: #cbd5e1; --color-text-muted: #94a3b8; --color-border: #1e293b; --color-header-bg: rgba(11, 15, 25, 0.85); --color-border-hover: #334155; --color-nav-hover-bg: rgba(37, 99, 235, 0.12); } * { margin: 0; padding: 0; box-sizing: border-box; } body { width: 100%; min-height: 100vh; background: var(--color-bg-page); font-family: var(--font-sans); color: var(--color-text-body); line-height: 1.6; -webkit-font-smoothing: antialiased; } /* Header styling */ .header { position: sticky; top: 0; z-index: 1000; background: var(--color-header-bg); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-bottom: 1px solid var(--color-border); padding: 16px 32px; } .header-content { max-width: 820px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; } .logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--color-text-title); font-weight: 700; font-size: 1.1rem; } .logo-icon { width: 32px; height: 32px; } .nav { display: flex; gap: 24px; } .nav-link { text-decoration: none; color: var(--color-text-muted); font-weight: 500; font-size: 0.9rem; transition: color 0.15s ease; } .nav-link:hover { color: var(--color-primary); } /* Theme Toggle Button */ .theme-toggle-btn { background: transparent; border: none; cursor: pointer; padding: 0; display: inline-flex; align-items: center; justify-content: center; color: var(--color-text-muted); transition: color 0.15s ease, transform 0.2s ease; outline: none; margin-left: 8px; } .theme-toggle-btn:hover { color: var(--color-primary); transform: translateY(-1px); } .theme-toggle-btn svg { width: 18px; height: 18px; } /* Toggle visibility of sun/moon icons depending on the theme */ [data-theme="dark"] .theme-toggle-btn .sun-icon { display: block; } [data-theme="dark"] .theme-toggle-btn .moon-icon { display: none; } :root:not([data-theme="dark"]) .theme-toggle-btn .sun-icon { display: none; } :root:not([data-theme="dark"]) .theme-toggle-btn .moon-icon { display: block; } /* Main Container */ .main-container { max-width: 820px; margin: 0 auto; padding: 48px 24px 96px; } /* Hero Section */ .hero { text-align: left; margin-bottom: 32px; } .hero-title { font-size: 32px; font-weight: 800; color: var(--color-text-title); letter-spacing: -0.5px; line-height: 1.2; margin-bottom: 12px; } .hero-subtitle { font-size: 14px; font-weight: 400; color: var(--color-text-muted); line-height: 1.5; max-width: 640px; } /* Platform Selection Grid */ .platform-selector { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 48px; } .platform-card { background: var(--color-bg-page); border: 1px solid var(--color-border); border-radius: 12px; padding: 20px 12px; display: flex; flex-direction: column; align-items: center; text-align: center; cursor: pointer; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); outline: none; width: 100%; } .platform-card:hover { transform: translateY(-2px); border-color: var(--color-primary); box-shadow: 0 8px 24px rgba(37, 99, 235, 0.06); } .platform-card.active { background: var(--color-nav-hover-bg); border-color: var(--color-primary); box-shadow: 0 8px 28px rgba(37, 99, 235, 0.1); } .platform-icon { width: 40px; height: 40px; margin-bottom: 12px; object-fit: contain; transition: transform 0.2s ease; } .platform-card:hover .platform-icon { transform: scale(1.08); } .platform-info { display: flex; flex-direction: column; gap: 2px; } .platform-name { font-size: 14px; font-weight: 700; color: var(--color-text-title); } .platform-status { font-size: 9px; color: var(--color-text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; } .platform-card.active .platform-status { color: var(--color-primary); } /* Platform Panels */ .platform-panel { display: none; opacity: 0; transform: translateY(8px); animation: fadeInUp 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards; } .platform-panel.active { display: block; } @keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } } /* High-Scannability Summary Badges */ .summary-badges { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 48px; } .summary-badge-item { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--color-text-title); background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: 6px; padding: 8px 16px; } .summary-badge-item i { width: 14px; height: 14px; color: var(--color-primary); flex-shrink: 0; } /* Page Summary / Metadata Index */ .page-summary-block { display: flex; justify-content: space-between; background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: 8px; padding: 24px; margin-bottom: 48px; gap: 32px; } .summary-index { display: flex; flex-direction: column; gap: 8px; } .summary-index h4 { font-size: 11px; font-weight: 700; color: var(--color-text-title); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; } .summary-index ul { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 24px; } .summary-index li a { font-size: 13px; color: var(--color-primary); text-decoration: none; font-weight: 500; } .summary-index li a:hover { text-decoration: underline; } .summary-meta { display: flex; flex-direction: column; justify-content: center; border-left: 1px solid var(--color-border); padding-left: 32px; min-width: 140px; gap: 4px; flex-shrink: 0; } .summary-meta span { font-size: 11px; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.05em; } .summary-meta strong { font-size: 13px; color: var(--color-text-title); font-weight: 700; } /* Sections Layout */ .section { margin-bottom: 48px; } .section-header { margin-bottom: 16px; } .section-num { font-size: 12px; font-weight: 700; color: var(--color-primary); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; } .section-title { font-size: 20px; font-weight: 700; color: var(--color-text-title); letter-spacing: -0.3px; } .section-content { font-size: 14px; line-height: 1.6; color: var(--color-text-body); } .section-content p { max-width: 680px; margin-bottom: 16px; } .section-content p:last-child { margin-bottom: 0; } .section-divider { height: 1px; background-color: var(--color-border); border: none; margin: 48px 0; } /* Lists and callouts with perfect icon-content alignment */ .clean-list { list-style: none; margin: 24px 0; display: flex; flex-direction: column; gap: 20px; } .clean-list li { display: flex; align-items: flex-start; gap: 12px; } .clean-list li i { width: 16px; height: 16px; color: var(--color-primary); margin-top: 3px; flex-shrink: 0; } .clean-list li div { display: flex; flex-direction: column; gap: 4px; } .clean-list li div strong { font-size: 14px; color: var(--color-text-title); font-weight: 700; } .clean-list li div span { font-size: 13px; color: var(--color-text-muted); line-height: 1.5; max-width: 680px; } .font-spaced { margin-top: 16px; } /* Interactive Text Links */ .text-link { color: var(--color-primary); text-decoration: none; font-weight: 500; transition: color 0.15s ease; } .text-link:hover { color: var(--color-primary-hover); text-decoration: underline; } /* Callout Clean Note */ .clean-note { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; color: var(--color-text-body); margin-top: 32px; padding: 16px 24px; border-left: 3px solid var(--color-primary); background: var(--color-bg-card); border-radius: 0 6px 6px 0; } .clean-note i { width: 16px; height: 16px; color: var(--color-primary); flex-shrink: 0; margin-top: 2px; } .clean-note span { line-height: 1.5; } /* Code Snippets */ .code-box { background: #0f172a; color: #e2e8f0; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: 12px; padding: 12px 16px; border-radius: 8px; overflow-x: auto; margin-top: 8px; max-width: 100%; } .code-box code { background: transparent; color: inherit; padding: 0; font-size: inherit; border: none; border-radius: 0; } code { background: var(--color-bg-card); color: var(--color-text-title); padding: 2px 6px; border-radius: 4px; font-size: 13px; font-weight: 500; border: 1px solid var(--color-border); } /* Data grid items */ .data-list-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 24px; } .data-item { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--color-border); border-radius: 8px; background: var(--color-bg-card); transition: all 0.2s ease; } .data-item:hover { border-color: var(--color-border-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02); } .data-item-header { display: flex; align-items: center; gap: 8px; color: var(--color-text-title); } .data-item-header h4 { font-size: 14px; font-weight: 700; } .data-item-header i { width: 16px; height: 16px; color: var(--color-primary); flex-shrink: 0; } .data-item p { font-size: 12px; color: var(--color-text-muted); margin: 0; line-height: 1.5; } .status-badge { font-size: 12px; font-weight: 600; margin-top: 8px; } .status-badge a { text-decoration: none; color: var(--color-primary); display: inline-flex; align-items: center; } /* GitHub Star Button */ .download-btn-github { display: inline-flex; align-items: center; background: #24292f; color: #ffffff; padding: 10px 20px; border-radius: 6px; font-size: 13px; font-weight: 600; text-decoration: none; border: 1px solid rgba(27, 31, 36, 0.15); transition: background 0.2s ease; } .download-btn-github:hover { background: #1f2328; } /* Footer Section styling */ .footer { border-top: 1px solid var(--color-border); background-color: var(--color-bg-card); padding: 64px 24px 32px; margin-top: 96px; } .footer-main { max-width: 820px; margin: 0 auto 48px; display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 48px 32px; } .footer-contact-section { display: flex; flex-direction: column; gap: 16px; } .footer-column { display: flex; flex-direction: column; gap: 16px; } .footer-column-title { font-size: 11px; font-weight: 700; color: var(--color-text-title); text-transform: uppercase; letter-spacing: 0.05em; } .footer-contact-list { display: flex; flex-direction: column; gap: 8px; } .footer-contact-item { display: flex; align-items: center; gap: 10px; color: var(--color-text-muted); text-decoration: none; font-size: 13px; font-weight: 500; transition: color 0.15s ease; } .footer-contact-item:hover { color: var(--color-primary); } .footer-contact-item svg { width: 16px; height: 16px; color: var(--color-text-muted); transition: color 0.15s ease; } .footer-contact-item:hover svg { color: var(--color-primary); } .footer-links { display: flex; flex-direction: column; gap: 12px; } .footer-links a { color: var(--color-text-muted); text-decoration: none; font-size: 13px; font-weight: 500; transition: color 0.15s ease; } .footer-links a:hover { color: var(--color-primary); } .footer-bottom { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--color-border); padding-top: 32px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; } .footer-copyright { font-size: 13px; color: var(--color-text-muted); } .footer-copyright a { color: var(--color-text-muted); text-decoration: none; font-weight: 600; } .footer-copyright a:hover { color: var(--color-primary); } .footer-bottom-links { display: flex; gap: 24px; } .footer-bottom-links a { color: var(--color-text-muted); text-decoration: none; font-size: 13px; transition: color 0.15s ease; } .footer-bottom-links a:hover { color: var(--color-primary); } .footer-gradient-border { height: 3px; background: linear-gradient(90deg, #2563eb, #60a5fa, #3b82f6); margin-top: 48px; } /* ========================================================================== Responsive Design ========================================================================== */ @media (max-width: 768px) { .main-container { padding: 32px 16px 64px; } .platform-selector { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 32px; } .platform-card { padding: 16px 8px; } .platform-icon { width: 32px; height: 32px; } .platform-name { font-size: 13px; } .platform-status { font-size: 8px; } .page-summary-block { flex-direction: column; gap: 20px; padding: 16px; margin-bottom: 32px; } .summary-meta { border-left: none; border-top: 1px solid var(--color-border); padding-left: 0; padding-top: 16px; } .data-list-grid { grid-template-columns: 1fr; gap: 16px; } .footer-main { grid-template-columns: 1fr; gap: 32px; } .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; } .footer-bottom-links { flex-wrap: wrap; gap: 16px; } } @media (max-width: 480px) { .platform-selector { grid-template-columns: 1fr; gap: 8px; } .platform-card { flex-direction: row; gap: 16px; padding: 12px 16px; text-align: left; align-items: center; } .platform-icon { margin-bottom: 0; } } /* Copyable Code Blocks */ .code-block-wrapper { position: relative; margin-top: 8px; max-width: 100%; } .code-block-wrapper .code-box { margin-top: 0; padding-right: 48px; /* space for copy button */ } .copy-btn { position: absolute; top: 8px; right: 8px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); color: #94a3b8; padding: 6px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; } .copy-btn:hover { background: rgba(255, 255, 255, 0.15); color: #ffffff; border-color: rgba(255, 255, 255, 0.25); } .copy-btn svg { width: 14px; height: 14px; }