Files
TIS_RMS/documentation/style.css
T
2026-10-05 09:45:38 +08:00

1631 lines
33 KiB
CSS

/* ==========================================================================
TIS-RMS USER GUIDE & SYSTEM DOCUMENTATION
Clean, Accessible Design System for User Documentation
========================================================================== */
:root {
/* Color Palette - Light Mode */
--bg-primary: #FFFFFF;
--bg-surface: #FFFFFF;
--bg-surface-elevated: #F8FAFC;
--bg-subtle: #F1F5F9;
--border-subtle: #E2E8F0;
--border-strong: #CBD5E1;
--text-primary: #0F172A;
--text-secondary: #475569;
--text-muted: #64748B;
--primary: #059669;
--primary-hover: #047857;
--primary-light: #ECFDF5;
--primary-border: #A7F3D0;
--accent-blue: #2563EB;
--accent-blue-light: #EFF6FF;
--accent-amber: #D97706;
--accent-amber-light: #FFFBEB;
--accent-rose: #DC2626;
--accent-rose-light: #FEF2F2;
--sidebar-w: 270px;
--header-h: 60px;
--radius-xs: 4px;
--radius-sm: 6px;
--radius-md: 8px;
--radius-lg: 12px;
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
--transition: all 0.15s ease-in-out;
}
[data-theme="dark"] {
/* Eye-Friendly Soft Slate Dark Palette */
--bg-primary: #0F172A; /* Slate 900: soothing dark background */
--bg-surface: #1E293B; /* Slate 800: soft component surface */
--bg-surface-elevated: #243248; /* Elevated cards & modal backgrounds */
--bg-subtle: #162033; /* Input fields & subtle slate panels */
--border-subtle: #293548; /* Gentle low-contrast border */
--border-strong: #3B4D66; /* Clean structure border */
--text-primary: #F1F5F9; /* Slate 100: soft off-white without glare */
--text-secondary: #94A3B8; /* Slate 400: readable, comfortable contrast */
--text-muted: #64748B; /* Slate 500: subtle labels */
--primary: #34D399; /* Soft emerald 400: soothing green */
--primary-hover: #10B981; /* Emerald 500 */
--primary-light: rgba(52, 211, 153, 0.12);
--primary-border: rgba(52, 211, 153, 0.28);
--accent-blue: #60A5FA;
--accent-blue-light: rgba(96, 165, 250, 0.12);
--accent-amber: #FBBF24;
--accent-amber-light: rgba(251, 191, 36, 0.12);
--accent-rose: #F87171;
--accent-rose-light: rgba(248, 113, 113, 0.12);
--shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.35);
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}
/* Base & Reset */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html {
scroll-behavior: smooth;
scroll-padding-top: calc(var(--header-h) + 20px);
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background-color: var(--bg-primary);
color: var(--text-primary);
line-height: 1.6;
-webkit-font-smoothing: antialiased;
overflow-x: hidden;
}
a {
color: var(--primary);
text-decoration: none;
transition: var(--transition);
}
a:hover {
text-decoration: underline;
}
code, kbd {
font-family: 'JetBrains Mono', Consolas, Monaco, monospace;
font-size: 0.85em;
}
code {
background: var(--bg-subtle);
border: 1px solid var(--border-subtle);
padding: 2px 5px;
border-radius: var(--radius-xs);
color: var(--text-primary);
}
kbd {
background: var(--bg-surface-elevated);
border: 1px solid var(--border-strong);
border-bottom-width: 2px;
padding: 2px 6px;
border-radius: var(--radius-xs);
font-size: 0.8em;
color: var(--text-primary);
}
/* ── Top Header ─────────────────────────────────────────── */
.doc-header {
position: sticky;
top: 0;
z-index: 100;
height: var(--header-h);
background: var(--bg-surface);
border-bottom: 1px solid var(--border-subtle);
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 20px;
}
.header-left {
display: flex;
align-items: center;
gap: 12px;
}
.mobile-menu-btn,
.mobile-search-btn {
display: none;
width: 36px;
height: 36px;
border-radius: var(--radius-sm);
border: 1px solid var(--border-subtle);
background: var(--bg-surface);
color: var(--text-primary);
cursor: pointer;
align-items: center;
justify-content: center;
transition: var(--transition);
flex-shrink: 0;
}
.mobile-menu-btn:hover,
.mobile-search-btn:hover {
background: var(--bg-subtle);
border-color: var(--border-strong);
}
.sidebar-backdrop {
display: none;
position: fixed;
inset: 0;
z-index: 95;
background: rgba(0, 0, 0, 0.4);
opacity: 0;
transition: opacity 0.2s ease;
pointer-events: none;
}
.sidebar-backdrop.active {
display: block;
opacity: 1;
pointer-events: auto;
}
.header-brand {
display: flex;
align-items: center;
gap: 10px;
text-decoration: none;
}
.header-brand img {
width: 30px;
height: 30px;
border-radius: var(--radius-xs);
object-fit: contain;
flex-shrink: 0;
}
.brand-text h1 {
font-size: 0.98rem;
font-weight: 700;
color: var(--text-primary);
line-height: 1.2;
}
.brand-text span {
font-size: 0.72rem;
color: var(--text-muted);
font-weight: 500;
}
.header-search {
flex: 1;
max-width: 380px;
margin: 0 20px;
position: relative;
}
.search-input-wrap {
display: flex;
align-items: center;
background: var(--bg-subtle);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
padding: 0 12px;
transition: var(--transition);
}
.search-input-wrap:focus-within {
border-color: var(--primary);
background: var(--bg-surface);
box-shadow: 0 0 0 2px var(--primary-light);
}
.search-icon {
color: var(--text-muted);
margin-right: 8px;
flex-shrink: 0;
}
.search-input {
width: 100%;
height: 34px;
background: transparent;
border: none;
outline: none;
font-size: 0.85rem;
color: var(--text-primary);
}
.search-kbd {
font-size: 0.7rem;
font-family: monospace;
background: var(--bg-surface);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-xs);
padding: 2px 5px;
color: var(--text-muted);
flex-shrink: 0;
}
/* ── Search Dropdown for Multi-Page Navigation ─────────── */
.search-dropdown {
position: absolute;
top: calc(100% + 6px);
left: 0;
right: 0;
background: var(--bg-surface);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
box-shadow: var(--shadow-lg);
max-height: 380px;
overflow-y: auto;
z-index: 1000;
display: none;
}
.search-dropdown.active {
display: block;
}
.search-result-item {
display: flex;
flex-direction: column;
padding: 10px 14px;
text-decoration: none !important;
color: var(--text-primary);
border-bottom: 1px solid var(--border-subtle);
transition: var(--transition-fast);
}
.search-result-item:last-child {
border-bottom: none;
}
.search-result-item:hover,
.search-result-item.selected {
background: var(--bg-subtle);
color: var(--primary);
}
.search-result-title {
font-weight: 600;
font-size: 0.88rem;
display: flex;
align-items: center;
gap: 8px;
color: var(--primary);
}
.search-result-desc {
font-size: 0.75rem;
color: var(--text-muted);
margin-top: 3px;
line-height: 1.3;
}
.header-actions {
display: flex;
align-items: center;
gap: 8px;
}
.platform-pill-toggle {
display: flex;
background: var(--bg-subtle);
border-radius: var(--radius-sm);
padding: 2px;
border: 1px solid var(--border-subtle);
}
.platform-btn {
padding: 4px 10px;
font-size: 0.78rem;
font-weight: 500;
border: none;
background: transparent;
color: var(--text-secondary);
border-radius: var(--radius-xs);
cursor: pointer;
transition: var(--transition);
display: flex;
align-items: center;
gap: 5px;
}
.platform-btn.active {
background: var(--bg-surface);
color: var(--text-primary);
box-shadow: var(--shadow-sm);
font-weight: 600;
}
.theme-toggle-btn, .print-btn {
width: 34px;
height: 34px;
border-radius: var(--radius-sm);
border: 1px solid var(--border-subtle);
background: var(--bg-surface);
color: var(--text-secondary);
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
transition: var(--transition);
position: relative;
user-select: none;
}
.theme-toggle-btn:hover, .print-btn:hover {
background: var(--bg-subtle);
color: var(--text-primary);
border-color: var(--border-strong);
transform: translateY(-1px);
}
.theme-toggle-btn:active, .print-btn:active {
transform: translateY(0);
}
/* Theme icon switching */
[data-theme="light"] .sun-icon {
display: none !important;
}
[data-theme="light"] .moon-icon {
display: block !important;
}
[data-theme="dark"] .sun-icon {
display: block !important;
}
[data-theme="dark"] .moon-icon {
display: none !important;
}
/* ── Layout Container ───────────────────────────────────── */
.doc-layout {
display: flex;
max-width: 1440px;
margin: 0 auto;
position: relative;
}
/* ── Sidebar Navigation ─────────────────────────────────── */
.doc-sidebar {
width: var(--sidebar-w);
flex-shrink: 0;
height: calc(100vh - var(--header-h));
position: sticky;
top: var(--header-h);
border-right: 1px solid var(--border-subtle);
padding: 24px 14px 40px;
overflow-y: auto;
background: var(--bg-surface);
}
.doc-sidebar::-webkit-scrollbar {
width: 4px;
}
.doc-sidebar::-webkit-scrollbar-thumb {
background: var(--border-subtle);
border-radius: 4px;
}
.sidebar-heading {
font-size: 0.72rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--text-muted);
margin: 20px 0 6px 10px;
}
.sidebar-heading:first-of-type {
margin-top: 0;
}
.sidebar-nav {
list-style: none;
}
.sidebar-nav li {
margin-bottom: 2px;
}
.nav-link {
display: flex;
align-items: center;
padding: 7px 10px;
border-radius: var(--radius-sm);
color: var(--text-secondary);
font-size: 0.85rem;
font-weight: 500;
text-decoration: none;
transition: var(--transition);
gap: 8px;
}
.nav-link:hover {
color: var(--text-primary);
background: var(--bg-subtle);
text-decoration: none;
}
.nav-link.active {
color: var(--primary);
background: var(--primary-light);
font-weight: 600;
}
.nav-icon {
display: flex;
align-items: center;
color: var(--text-muted);
flex-shrink: 0;
}
.nav-link:hover .nav-icon {
color: var(--text-primary);
}
.nav-link.active .nav-icon {
color: var(--primary);
}
.nav-icon svg {
width: 15px;
height: 15px;
}
.nav-badge {
margin-left: auto;
font-size: 0.68rem;
font-weight: 600;
padding: 1px 6px;
border-radius: var(--radius-xs);
background: var(--bg-subtle);
color: var(--text-muted);
}
.nav-link.active .nav-badge {
background: var(--bg-surface);
color: var(--primary);
}
/* ── Main Content Area ──────────────────────────────────── */
.doc-main {
flex: 1;
min-width: 0;
padding: 36px 48px 80px;
max-width: 980px;
}
/* ── Hero Banner (Minimalist) ───────────────────────────── */
.hero-banner {
padding: 0 0 32px 0;
border-bottom: 1px solid var(--border-subtle);
margin-bottom: 40px;
}
.hero-tag {
display: inline-block;
font-size: 0.75rem;
font-weight: 600;
color: var(--primary);
background: var(--primary-light);
border: 1px solid var(--primary-border);
padding: 3px 8px;
border-radius: var(--radius-xs);
margin-bottom: 14px;
}
.hero-title {
font-size: 2rem;
font-weight: 800;
color: var(--text-primary);
line-height: 1.25;
margin-bottom: 12px;
letter-spacing: -0.02em;
}
.hero-subtitle {
font-size: 1rem;
color: var(--text-secondary);
line-height: 1.6;
margin-bottom: 18px;
max-width: 800px;
}
.hero-badges {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.badge-item {
display: inline-block;
font-size: 0.75rem;
font-weight: 500;
padding: 3px 8px;
border-radius: var(--radius-xs);
background: var(--bg-subtle);
color: var(--text-secondary);
border: 1px solid var(--border-subtle);
}
/* ── Sections & Typography ──────────────────────────────── */
.doc-section {
margin-bottom: 56px;
}
.section-header {
margin-bottom: 18px;
}
.section-title {
font-size: 1.45rem;
font-weight: 700;
color: var(--text-primary);
letter-spacing: -0.015em;
margin-bottom: 6px;
}
.section-subtitle {
font-size: 0.92rem;
color: var(--text-secondary);
}
.subheading {
font-size: 1.15rem;
font-weight: 600;
color: var(--text-primary);
margin: 28px 0 12px;
}
.paragraph {
font-size: 0.92rem;
color: var(--text-secondary);
line-height: 1.65;
margin-bottom: 16px;
}
/* ── Minimalist Module Summary ──────────────────────────── */
.module-summary {
background: var(--bg-surface-elevated);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
padding: 14px 18px;
margin: 16px 0 20px;
}
.module-summary-label {
display: flex;
align-items: center;
gap: 6px;
font-size: 0.78rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.04em;
color: var(--primary);
margin-bottom: 8px;
}
.module-summary-list {
list-style: none;
}
.module-summary-list li {
font-size: 0.88rem;
color: var(--text-secondary);
padding: 3px 0 3px 18px;
position: relative;
line-height: 1.5;
}
.module-summary-list li::before {
content: "";
position: absolute;
left: 4px;
top: 10px;
width: 4px;
height: 4px;
border-radius: 50%;
background: var(--primary);
}
.module-summary-list strong {
color: var(--text-primary);
font-weight: 600;
}
/* ── Minimalist Callout Boxes ───────────────────────────── */
.callout {
border-radius: var(--radius-md);
padding: 14px 18px;
margin: 18px 0;
display: flex;
gap: 12px;
align-items: flex-start;
font-size: 0.88rem;
line-height: 1.55;
border: 1px solid var(--border-subtle);
}
.callout.tip {
background: var(--primary-light);
border-left: 3px solid var(--primary);
border-color: var(--primary-border);
}
.callout.important {
background: var(--accent-blue-light);
border-left: 3px solid var(--accent-blue);
}
.callout.warning {
background: var(--accent-amber-light);
border-left: 3px solid var(--accent-amber);
}
.callout-icon {
display: flex;
align-items: center;
justify-content: center;
width: 18px;
height: 18px;
flex-shrink: 0;
margin-top: 2px;
}
.callout.tip .callout-icon { color: var(--primary); }
.callout.important .callout-icon { color: var(--accent-blue); }
.callout.warning .callout-icon { color: var(--accent-amber); }
.callout-icon svg {
width: 18px;
height: 18px;
}
/* ── Minimalist Documentation Figures (Screenshots) ─────── */
.mockup-container {
margin: 24px 0 28px;
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
background: var(--bg-surface);
overflow: hidden;
}
.mockup-tabs {
display: flex;
align-items: center;
gap: 4px;
background: var(--bg-subtle);
border-bottom: 1px solid var(--border-subtle);
padding: 6px 12px;
}
.mockup-tab-btn {
padding: 4px 12px;
border-radius: var(--radius-xs);
font-size: 0.8rem;
font-weight: 500;
border: 1px solid transparent;
background: transparent;
color: var(--text-secondary);
cursor: pointer;
transition: var(--transition);
display: inline-flex;
align-items: center;
gap: 5px;
}
.mockup-tab-btn:hover {
color: var(--text-primary);
background: var(--bg-surface-elevated);
}
.mockup-tab-btn.active {
background: var(--bg-surface);
color: var(--primary);
font-weight: 600;
border-color: var(--border-subtle);
box-shadow: var(--shadow-sm);
}
.mockup-pane {
background: var(--bg-surface);
}
/* Clean Document Figure */
.doc-figure {
margin: 0;
display: flex;
flex-direction: column;
background: var(--bg-surface);
cursor: zoom-in;
position: relative;
}
.doc-figure-img-wrap {
width: 100%;
display: flex;
justify-content: center;
align-items: center;
background: var(--bg-subtle);
padding: 12px;
}
.doc-figure img {
max-width: 100%;
height: auto;
max-height: 480px;
object-fit: contain;
display: block;
border-radius: var(--radius-xs);
border: 1px solid var(--border-subtle);
transition: opacity 0.2s ease;
}
.doc-figure:hover img {
opacity: 0.96;
}
.doc-figure figcaption {
padding: 8px 14px;
font-size: 0.78rem;
color: var(--text-muted);
border-top: 1px solid var(--border-subtle);
background: var(--bg-surface);
display: flex;
align-items: center;
justify-content: space-between;
}
.doc-figure figcaption .zoom-hint {
font-size: 0.72rem;
color: var(--text-muted);
display: inline-flex;
align-items: center;
gap: 4px;
}
.doc-figure figcaption .zoom-hint svg {
width: 12px;
height: 12px;
}
/* Android Figure Centered Display */
.doc-figure-android .doc-figure-img-wrap {
padding: 16px;
background: var(--bg-subtle);
}
.doc-figure-android img {
max-width: 600px;
margin: 0 auto;
}
/* ── Feature Grids & Step Cards ─────────────────────────── */
.feature-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 14px;
margin: 18px 0;
}
.feature-card {
background: var(--bg-surface);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
padding: 16px;
transition: var(--transition);
}
.feature-card:hover {
border-color: var(--border-strong);
}
.card-icon {
width: 28px;
height: 28px;
border-radius: var(--radius-xs);
background: var(--primary-light);
color: var(--primary);
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 10px;
}
.card-icon svg {
width: 16px;
height: 16px;
}
.card-title {
font-size: 0.92rem;
font-weight: 600;
color: var(--text-primary);
margin-bottom: 6px;
}
.card-desc {
font-size: 0.84rem;
color: var(--text-secondary);
line-height: 1.5;
}
/* Steps Container */
.steps-container {
display: flex;
flex-direction: column;
gap: 10px;
margin: 18px 0;
}
.step-card {
background: var(--bg-surface);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
padding: 14px 16px;
display: flex;
align-items: flex-start;
gap: 14px;
}
.step-number {
width: 24px;
height: 24px;
border-radius: 50%;
background: var(--primary-light);
color: var(--primary);
font-weight: 700;
font-size: 0.78rem;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
margin-top: 1px;
}
.step-content h4 {
font-size: 0.9rem;
font-weight: 600;
color: var(--text-primary);
margin-bottom: 3px;
}
.step-content p {
font-size: 0.84rem;
color: var(--text-secondary);
line-height: 1.5;
}
/* ── Tables & Data Grids ────────────────────────────────── */
.table-wrap {
overflow-x: auto;
margin: 18px 0;
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
background: var(--bg-surface);
}
table.doc-table {
width: 100%;
border-collapse: collapse;
font-size: 0.86rem;
text-align: left;
}
table.doc-table th {
background: var(--bg-subtle);
padding: 10px 14px;
font-weight: 600;
color: var(--text-primary);
border-bottom: 1px solid var(--border-subtle);
font-size: 0.82rem;
}
table.doc-table td {
padding: 10px 14px;
border-bottom: 1px solid var(--border-subtle);
color: var(--text-secondary);
}
table.doc-table tr:last-child td {
border-bottom: none;
}
table.doc-table tr:hover td {
background: var(--bg-subtle);
}
.badge {
display: inline-block;
font-size: 0.7rem;
font-weight: 600;
padding: 2px 7px;
border-radius: var(--radius-xs);
text-transform: uppercase;
}
.badge.success { background: #DCFCE7; color: #166534; }
.badge.info { background: #DBEAFE; color: #1E40AF; }
.badge.warning { background: #FEF3C7; color: #92400E; }
.badge.danger { background: #FEE2E2; color: #991B1B; }
[data-theme="dark"] .badge.success { background: rgba(22, 101, 52, 0.3); color: #86EFAC; }
[data-theme="dark"] .badge.info { background: rgba(30, 64, 175, 0.3); color: #93C5FD; }
[data-theme="dark"] .badge.warning { background: rgba(146, 64, 14, 0.3); color: #FDE68A; }
[data-theme="dark"] .badge.danger { background: rgba(153, 27, 27, 0.3); color: #FCA5A5; }
/* ── FAQ Accordion Section ─────────────────────────────── */
.faq-category {
margin: 28px 0 14px;
}
.faq-category:first-of-type {
margin-top: 14px;
}
.faq-category-title {
font-size: 0.95rem;
font-weight: 700;
color: var(--primary);
margin-bottom: 10px;
display: flex;
align-items: center;
gap: 7px;
}
.faq-category-title svg {
width: 16px;
height: 16px;
}
.faq-item {
background: var(--bg-surface);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
margin-bottom: 8px;
overflow: hidden;
transition: var(--transition);
}
.faq-item:hover {
border-color: var(--border-strong);
}
.faq-question {
width: 100%;
padding: 12px 16px;
background: transparent;
border: none;
text-align: left;
font-size: 0.88rem;
font-weight: 600;
color: var(--text-primary);
cursor: pointer;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
font-family: inherit;
}
.faq-question svg {
transition: transform 0.2s ease;
flex-shrink: 0;
color: var(--text-muted);
}
.faq-item.active {
border-color: var(--primary-border);
}
.faq-item.active .faq-question svg {
transform: rotate(180deg);
color: var(--primary);
}
.faq-answer {
display: none;
padding: 0 16px 14px;
color: var(--text-secondary);
font-size: 0.86rem;
line-height: 1.6;
border-top: 1px solid var(--border-subtle);
background: var(--bg-surface-elevated);
}
.faq-item.active .faq-answer {
display: block;
}
.faq-answer p {
margin-top: 10px;
}
.faq-answer p:first-child {
margin-top: 12px;
}
.faq-answer ul {
margin: 8px 0 8px 18px;
}
.faq-answer li {
margin-bottom: 4px;
}
/* ── Lightbox Modal ─────────────────────────────────────── */
.lightbox-modal {
position: fixed;
inset: 0;
z-index: 1000;
background: rgba(0, 0, 0, 0.85);
display: none;
align-items: center;
justify-content: center;
padding: 20px;
}
.lightbox-modal.active {
display: flex;
}
.lightbox-img {
max-width: 95%;
max-height: 88vh;
object-fit: contain;
border-radius: var(--radius-sm);
background: var(--bg-surface);
border: 1px solid rgba(255, 255, 255, 0.15);
}
.lightbox-close {
position: absolute;
top: 18px;
right: 18px;
width: 36px;
height: 36px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.15);
color: #fff;
border: none;
font-size: 1.4rem;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: var(--transition);
}
.lightbox-close:hover {
background: rgba(255, 255, 255, 0.3);
}
.lightbox-caption {
position: absolute;
bottom: 18px;
background: rgba(0, 0, 0, 0.75);
color: #fff;
padding: 6px 14px;
border-radius: var(--radius-xs);
font-size: 0.82rem;
max-width: 80%;
text-align: center;
}
/* ── Footer ─────────────────────────────────────────────── */
.doc-footer {
margin-top: 48px;
border-top: 1px solid var(--border-subtle);
padding: 24px 0 16px;
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 16px;
font-size: 0.8rem;
color: var(--text-muted);
}
.footer-left {
display: flex;
align-items: center;
gap: 12px;
max-width: 600px;
}
.footer-left img {
width: 32px;
height: 32px;
flex-shrink: 0;
border-radius: var(--radius-xs);
}
.footer-title {
font-weight: 600;
color: var(--text-primary);
margin-bottom: 2px;
font-size: 0.84rem;
}
.footer-sub {
font-size: 0.74rem;
color: var(--text-muted);
line-height: 1.35;
}
.footer-right {
display: flex;
align-items: center;
gap: 12px;
flex-wrap: wrap;
}
.footer-right a {
color: var(--text-secondary);
font-size: 0.78rem;
text-decoration: none;
transition: var(--transition);
padding: 4px 6px;
border-radius: var(--radius-xs);
}
.footer-right a:hover {
color: var(--primary);
background: var(--bg-subtle);
text-decoration: none;
}
.footer-right .back-to-top {
color: var(--primary);
font-weight: 600;
display: inline-flex;
align-items: center;
gap: 4px;
}
/* ── Responsive Adaptations ─────────────────────────────── */
@media (max-width: 1024px) {
:root {
--header-h: 56px;
}
.mobile-menu-btn {
display: flex !important;
}
.mobile-search-btn {
display: flex !important;
}
.print-btn {
display: inline-flex !important;
}
.header-search {
position: absolute;
top: var(--header-h);
left: 0;
right: 0;
margin: 0;
max-width: none;
background: var(--bg-surface);
padding: 8px 14px;
border-bottom: 1px solid var(--border-subtle);
display: none;
box-shadow: var(--shadow-md);
z-index: 90;
}
.header-search.mobile-open {
display: block !important;
}
.search-kbd {
display: none;
}
.doc-sidebar {
position: fixed;
top: 0;
bottom: 0;
left: -300px;
height: 100vh;
z-index: 100;
width: 280px;
background: var(--bg-surface);
border-right: 1px solid var(--border-subtle);
box-shadow: var(--shadow-lg);
transition: transform 0.25s ease;
padding: 16px 14px 40px;
}
.doc-sidebar.open {
transform: translateX(300px);
}
.doc-main {
padding: 24px 20px 60px;
}
}
@media (max-width: 768px) {
.doc-header {
padding: 0 12px;
}
.platform-pill-toggle .platform-text {
display: none;
}
.platform-btn {
padding: 4px 6px;
}
.hero-banner {
padding-bottom: 24px;
margin-bottom: 28px;
}
.hero-title {
font-size: 1.5rem;
}
.hero-subtitle {
font-size: 0.9rem;
}
.doc-section {
margin-bottom: 40px;
}
.section-title {
font-size: 1.25rem;
}
.feature-grid {
grid-template-columns: 1fr;
gap: 10px;
}
.mockup-container {
margin: 18px 0;
}
.doc-figure-img-wrap {
padding: 8px;
}
.table-wrap {
margin: 14px 0;
}
table.doc-table th, table.doc-table td {
padding: 8px 10px;
font-size: 0.78rem;
}
.doc-footer {
flex-direction: column;
align-items: flex-start;
gap: 16px;
padding: 24px 0 28px;
}
.footer-left {
width: 100%;
}
.footer-right {
width: 100%;
justify-content: flex-start;
gap: 10px;
border-top: 1px dashed var(--border-subtle);
padding-top: 14px;
}
}
@media (max-width: 480px) {
.doc-main {
padding: 16px 12px 48px;
}
.brand-text span {
display: none;
}
.brand-text h1 {
font-size: 0.88rem;
}
.hero-title {
font-size: 1.3rem;
}
}
/* ── Landscape Side Tab & Low Height Responsiveness ───────── */
@media (orientation: landscape) and (max-height: 768px) {
.doc-sidebar {
padding: 10px 10px 36px;
scrollbar-width: thin;
}
.sidebar-heading {
margin: 10px 0 4px 6px;
font-size: 0.65rem;
letter-spacing: 0.04em;
}
.sidebar-nav li {
margin-bottom: 1px;
}
.nav-link {
padding: 5px 8px;
font-size: 0.78rem;
gap: 6px;
line-height: 1.25;
}
.nav-icon svg {
width: 14px;
height: 14px;
}
.nav-badge {
font-size: 0.62rem;
padding: 1px 4px;
}
}
@media (max-width: 1024px) and (orientation: landscape) {
.doc-sidebar {
height: 100vh;
max-height: 100vh;
overflow-y: auto;
padding-bottom: 56px;
}
}
/* ── Component Screenshots & Inline Media ───────────────── */
.component-screenshot {
margin: 18px 0 24px;
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
background: var(--bg-surface);
overflow: hidden;
box-shadow: var(--shadow-sm);
cursor: zoom-in;
display: flex;
flex-direction: column;
}
.component-screenshot .doc-figure-img-wrap {
background: var(--bg-subtle);
padding: 14px;
display: flex;
justify-content: center;
align-items: center;
}
.component-screenshot img {
max-width: 100%;
height: auto;
max-height: 420px;
object-fit: contain;
border-radius: var(--radius-xs);
border: 1px solid var(--border-subtle);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.component-screenshot figcaption {
padding: 8px 14px;
font-size: 0.8rem;
font-weight: 500;
color: var(--text-secondary);
border-top: 1px solid var(--border-subtle);
background: var(--bg-surface-elevated);
display: flex;
align-items: center;
justify-content: space-between;
}
.screenshot-title {
display: block;
font-weight: 600;
color: var(--text-primary);
}
.screenshot-sub {
font-size: 0.74rem;
color: var(--text-muted);
margin-top: 2px;
font-weight: 400;
}
/* ── Previous and Next Page Navigation Buttons ──────────── */
.page-navigation {
display: flex;
justify-content: space-between;
align-items: stretch;
gap: 16px;
margin-top: 40px;
padding-top: 24px;
border-top: 1px solid var(--border-subtle);
}
.page-nav-link {
display: inline-flex;
flex-direction: column;
padding: 12px 18px;
border-radius: var(--radius-md);
border: 1px solid var(--border-subtle);
background: var(--bg-surface);
text-decoration: none !important;
color: var(--text-primary);
transition: var(--transition);
min-width: 180px;
max-width: 48%;
}
.page-nav-link:hover {
border-color: var(--primary);
background: var(--bg-subtle);
box-shadow: var(--shadow-sm);
transform: translateY(-1px);
}
.page-nav-link.next {
margin-left: auto;
text-align: right;
align-items: flex-end;
}
.page-nav-link.prev {
margin-right: auto;
text-align: left;
align-items: flex-start;
}
.page-nav-label {
font-size: 0.72rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--text-muted);
display: inline-flex;
align-items: center;
gap: 6px;
}
.page-nav-title {
font-size: 0.92rem;
font-weight: 600;
color: var(--primary);
margin-top: 4px;
}
/* ── Eye-Friendly Dark Mode Component Overrides ─────────── */
[data-theme="dark"] .component-screenshot,
[data-theme="dark"] .mockup-container {
background: var(--bg-surface);
border-color: var(--border-subtle);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
[data-theme="dark"] .doc-figure-img-wrap,
[data-theme="dark"] .component-screenshot .doc-figure-img-wrap {
background: #111A2E;
}
[data-theme="dark"] .doc-figure img,
[data-theme="dark"] .component-screenshot img {
border-color: var(--border-subtle);
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}
[data-theme="dark"] .component-screenshot figcaption,
[data-theme="dark"] .doc-figure figcaption {
background: var(--bg-surface-elevated);
border-color: var(--border-subtle);
color: var(--text-secondary);
}
[data-theme="dark"] .search-dropdown {
background: var(--bg-surface-elevated);
border-color: var(--border-strong);
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.6);
}
[data-theme="dark"] .search-result-item:hover,
[data-theme="dark"] .search-result-item.selected {
background: var(--bg-subtle);
}
[data-theme="dark"] .search-result-item {
border-color: var(--border-subtle);
}
[data-theme="dark"] .page-nav-link {
background: var(--bg-surface);
border-color: var(--border-subtle);
}
[data-theme="dark"] .page-nav-link:hover {
background: var(--bg-surface-elevated);
border-color: var(--primary);
}
/* ── Platform Filter Visual States ──────────────────────── */
[data-doc-platform="windows"] .platform-badge-android,
[data-doc-platform="windows"] .shortcut-group-android {
opacity: 0.4;
transition: opacity 0.2s ease;
}
[data-doc-platform="android"] .platform-badge-windows,
[data-doc-platform="android"] .shortcut-group-windows {
opacity: 0.4;
transition: opacity 0.2s ease;
}
/* Print Styles */
@media print {
:root, [data-theme="dark"] {
--bg-primary: #ffffff !important;
--bg-surface: #ffffff !important;
--text-primary: #000000 !important;
--text-secondary: #333333 !important;
--border-subtle: #cccccc !important;
}
body {
background: #ffffff !important;
color: #000000 !important;
}
.doc-header, .doc-sidebar, .mockup-tabs, .theme-toggle-btn, .print-btn,
.mobile-menu-btn, .mobile-search-btn, .platform-pill-toggle, .zoom-hint,
.page-navigation, .search-dropdown, .sidebar-backdrop, .doc-footer .footer-right {
display: none !important;
}
.doc-main {
padding: 0 !important;
max-width: 100% !important;
width: 100% !important;
}
.doc-section {
page-break-inside: avoid;
margin-bottom: 24px;
}
.component-screenshot img, .doc-figure img {
max-height: 380px !important;
}
}