1494 lines
27 KiB
CSS
1494 lines
27 KiB
CSS
/* ==========================================================================
|
|
CHANGAN CS55 PLUS 4TH GEN OWNER'S MANUAL - MODERN RESPONSIVE STYLESHEET
|
|
Brand Colors: Primary Teal #2787A6, Dark Slate #0F172A, Border #E2E8F0
|
|
========================================================================== */
|
|
|
|
:root {
|
|
--primary: #2787A6;
|
|
--primary-hover: #1f6e87;
|
|
--primary-light: #e8f4f8;
|
|
--primary-glow: rgba(39, 135, 166, 0.25);
|
|
|
|
--bg-main: #f8fafc;
|
|
--bg-surface: #ffffff;
|
|
--bg-sidebar: #ffffff;
|
|
--bg-header: #0f172a;
|
|
|
|
--text-main: #1e293b;
|
|
--text-muted: #64748b;
|
|
--text-light: #94a3b8;
|
|
--text-on-dark: #f8fafc;
|
|
|
|
--border-color: #e2e8f0;
|
|
--border-light: #f1f5f9;
|
|
|
|
--danger-bg: #fef2f2;
|
|
--danger-border: #f87171;
|
|
--danger-text: #991b1b;
|
|
|
|
--warning-bg: #fffbeb;
|
|
--warning-border: #fbbf24;
|
|
--warning-text: #92400e;
|
|
|
|
--info-bg: #eff6ff;
|
|
--info-border: #60a5fa;
|
|
--info-text: #1e40af;
|
|
|
|
--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
|
--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
|
|
--header-height: 64px;
|
|
--sidebar-width: 340px;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
color: var(--text-main);
|
|
background-color: var(--bg-main);
|
|
line-height: 1.6;
|
|
font-size: 15px;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
/* Header */
|
|
.app-header {
|
|
position: sticky;
|
|
top: 0;
|
|
height: var(--header-height);
|
|
background-color: var(--bg-header);
|
|
color: var(--text-on-dark);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 20px;
|
|
z-index: 1000;
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
.brand-section {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
}
|
|
|
|
.menu-toggle-btn {
|
|
display: none;
|
|
background: transparent;
|
|
border: none;
|
|
color: #fff;
|
|
font-size: 24px;
|
|
cursor: pointer;
|
|
padding: 6px;
|
|
line-height: 1;
|
|
}
|
|
|
|
.brand-badge {
|
|
background: linear-gradient(135deg, var(--primary), #38bdf8);
|
|
color: #fff;
|
|
padding: 4px 10px;
|
|
border-radius: 6px;
|
|
font-weight: 800;
|
|
font-size: 13px;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.brand-title {
|
|
font-size: 17px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.2px;
|
|
}
|
|
|
|
.brand-title span {
|
|
color: #38bdf8;
|
|
}
|
|
|
|
.brand-subtitle {
|
|
font-size: 12px;
|
|
color: var(--text-light);
|
|
display: block;
|
|
}
|
|
|
|
/* Header search & controls */
|
|
.header-search {
|
|
flex: 1;
|
|
max-width: 460px;
|
|
margin: 0 24px;
|
|
position: relative;
|
|
}
|
|
|
|
.search-input-box {
|
|
width: 100%;
|
|
position: relative;
|
|
}
|
|
|
|
.search-input-box input {
|
|
width: 100%;
|
|
padding: 9px 16px 9px 40px;
|
|
border-radius: 24px;
|
|
border: 1px solid rgba(255, 255, 255, 0.15);
|
|
background-color: rgba(255, 255, 255, 0.1);
|
|
color: #fff;
|
|
font-size: 14px;
|
|
outline: none;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.search-input-box input:focus {
|
|
background-color: rgba(255, 255, 255, 0.18);
|
|
border-color: #38bdf8;
|
|
box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
|
|
}
|
|
|
|
.search-input-box input::placeholder {
|
|
color: var(--text-light);
|
|
}
|
|
|
|
.search-icon {
|
|
position: absolute;
|
|
left: 14px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
color: var(--text-light);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.header-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.btn-header {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
border: 1px solid rgba(255, 255, 255, 0.15);
|
|
color: #fff;
|
|
padding: 7px 14px;
|
|
border-radius: 20px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.btn-header:hover {
|
|
background: rgba(255, 255, 255, 0.2);
|
|
border-color: rgba(255, 255, 255, 0.3);
|
|
}
|
|
|
|
.btn-lang {
|
|
background: var(--primary);
|
|
border-color: var(--primary);
|
|
}
|
|
|
|
.btn-lang:hover {
|
|
background: var(--primary-hover);
|
|
}
|
|
|
|
/* Layout */
|
|
.app-container {
|
|
display: flex;
|
|
height: calc(100vh - var(--header-height));
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Sidebar */
|
|
.app-sidebar {
|
|
width: var(--sidebar-width);
|
|
height: 100%;
|
|
background-color: var(--bg-sidebar);
|
|
border-right: 1px solid var(--border-color);
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-shrink: 0;
|
|
transition: transform 0.3s ease;
|
|
z-index: 500;
|
|
}
|
|
|
|
.sidebar-nav-tabs {
|
|
display: flex;
|
|
border-bottom: 1px solid var(--border-color);
|
|
background: var(--bg-main);
|
|
padding: 4px;
|
|
gap: 4px;
|
|
}
|
|
|
|
.nav-tab-btn {
|
|
flex: 1;
|
|
padding: 8px 10px;
|
|
background: transparent;
|
|
border: none;
|
|
border-radius: 6px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
text-align: center;
|
|
}
|
|
|
|
.nav-tab-btn.active {
|
|
background: #fff;
|
|
color: var(--primary);
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.sidebar-scroll {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 12px 0;
|
|
}
|
|
|
|
/* Accordion sections */
|
|
.plate-accordion {
|
|
border-bottom: 1px solid var(--border-light);
|
|
}
|
|
|
|
.plate-header {
|
|
padding: 12px 18px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
transition: background 0.15s;
|
|
}
|
|
|
|
.plate-header:hover {
|
|
background-color: var(--primary-light);
|
|
}
|
|
|
|
.plate-header.active {
|
|
background-color: var(--primary-light);
|
|
border-left: 4px solid var(--primary);
|
|
}
|
|
|
|
.plate-header-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.plate-icon {
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 6px;
|
|
background: #f1f5f9;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.plate-title-group {
|
|
overflow: hidden;
|
|
}
|
|
|
|
.plate-title {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--text-main);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.plate-subtitle {
|
|
font-size: 11px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.plate-chevron {
|
|
font-size: 11px;
|
|
color: var(--text-muted);
|
|
transition: transform 0.2s;
|
|
}
|
|
|
|
.plate-header.open .plate-chevron {
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
.plate-body {
|
|
display: none;
|
|
background-color: #fbfcfe;
|
|
padding: 4px 0;
|
|
}
|
|
|
|
.plate-body.open {
|
|
display: block;
|
|
}
|
|
|
|
/* Category group */
|
|
.category-group {
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.category-title {
|
|
padding: 8px 18px 6px 36px;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
color: var(--text-muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.topic-list-item {
|
|
display: block;
|
|
padding: 8px 18px 8px 44px;
|
|
font-size: 13.5px;
|
|
color: #334155;
|
|
text-decoration: none;
|
|
transition: all 0.15s;
|
|
line-height: 1.4;
|
|
border-left: 3px solid transparent;
|
|
}
|
|
|
|
.topic-list-item:hover {
|
|
background-color: var(--primary-light);
|
|
color: var(--primary);
|
|
}
|
|
|
|
.topic-list-item.active {
|
|
background-color: var(--primary-light);
|
|
color: var(--primary);
|
|
font-weight: 600;
|
|
border-left-color: var(--primary);
|
|
}
|
|
|
|
/* Main Content Area */
|
|
.app-content {
|
|
flex: 1;
|
|
height: 100%;
|
|
overflow-y: auto;
|
|
padding: 24px 36px 60px;
|
|
background-color: var(--bg-main);
|
|
}
|
|
|
|
.content-wrapper {
|
|
max-width: 920px;
|
|
margin: 0 auto;
|
|
background: #fff;
|
|
border-radius: 12px;
|
|
border: 1px solid var(--border-color);
|
|
box-shadow: var(--shadow-sm);
|
|
padding: 36px 44px;
|
|
}
|
|
|
|
/* Breadcrumbs */
|
|
.breadcrumbs {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 12.5px;
|
|
color: var(--text-muted);
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.breadcrumbs a {
|
|
color: var(--text-muted);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.breadcrumbs a:hover {
|
|
color: var(--primary);
|
|
}
|
|
|
|
.breadcrumb-sep {
|
|
color: #cbd5e1;
|
|
}
|
|
|
|
/* Topic Header */
|
|
.topic-page-header {
|
|
border-bottom: 2px solid var(--border-light);
|
|
padding-bottom: 18px;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.topic-badges {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.badge-tag {
|
|
background: var(--primary-light);
|
|
color: var(--primary);
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
padding: 3px 8px;
|
|
border-radius: 4px;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.badge-id {
|
|
background: #f1f5f9;
|
|
color: var(--text-muted);
|
|
font-size: 11px;
|
|
padding: 3px 8px;
|
|
border-radius: 4px;
|
|
font-family: monospace;
|
|
}
|
|
|
|
.main-topic-title {
|
|
font-size: 26px;
|
|
font-weight: 800;
|
|
color: var(--text-main);
|
|
line-height: 1.3;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.topic-subtitle-zh {
|
|
font-size: 14px;
|
|
color: var(--text-muted);
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* Rich Topic Content Styling */
|
|
.topic-container {
|
|
font-size: 15px;
|
|
line-height: 1.75;
|
|
color: #1e293b;
|
|
}
|
|
|
|
.topic-container h1,
|
|
.topic-container h2,
|
|
.topic-container h3,
|
|
.topic-container h4 {
|
|
color: var(--text-main);
|
|
margin-top: 24px;
|
|
margin-bottom: 12px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.topic-container h3.topictitle1 {
|
|
display: none; /* Already rendered in main-topic-title */
|
|
}
|
|
|
|
.topic-container p {
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
.topic-container ol,
|
|
.topic-container ul {
|
|
margin: 14px 0 18px 24px;
|
|
}
|
|
|
|
.topic-container li {
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.topic-container li p {
|
|
margin-bottom: 0;
|
|
display: inline;
|
|
}
|
|
|
|
/* Callout Alerts */
|
|
.note, .warning, .caution {
|
|
margin: 20px 0;
|
|
padding: 16px 20px;
|
|
border-radius: 8px;
|
|
font-size: 14.5px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.note.warning {
|
|
background-color: var(--danger-bg) !important;
|
|
border-left: 4px solid var(--danger-border) !important;
|
|
color: var(--danger-text) !important;
|
|
}
|
|
|
|
.note.warning td {
|
|
color: var(--danger-text) !important;
|
|
}
|
|
|
|
.note.note, .note.caution {
|
|
background-color: var(--warning-bg) !important;
|
|
border-left: 4px solid var(--warning-border) !important;
|
|
color: var(--warning-text) !important;
|
|
}
|
|
|
|
.note.note td, .note.caution td {
|
|
color: var(--warning-text) !important;
|
|
}
|
|
|
|
/* Images & Figures */
|
|
.topic-container img,
|
|
.imagecenter img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
border-radius: 8px;
|
|
display: block;
|
|
margin: 16px auto;
|
|
cursor: zoom-in;
|
|
transition: transform 0.2s, box-shadow 0.2s;
|
|
box-shadow: var(--shadow-sm);
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.topic-container img:hover {
|
|
transform: scale(1.01);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
/* Tables */
|
|
.topic-container table {
|
|
width: 100% !important;
|
|
border-collapse: collapse;
|
|
margin: 20px 0;
|
|
border: 1px solid var(--border-color);
|
|
font-size: 14px;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.topic-container th,
|
|
.topic-container td {
|
|
padding: 10px 14px;
|
|
border: 1px solid var(--border-color);
|
|
vertical-align: top;
|
|
}
|
|
|
|
.topic-container th {
|
|
background-color: #f1f5f9;
|
|
font-weight: 700;
|
|
color: #0f172a;
|
|
}
|
|
|
|
.topic-container tr:nth-child(even) td {
|
|
background-color: #f8fafc;
|
|
}
|
|
|
|
/* Links inside content */
|
|
.manual-link, .topic-container a {
|
|
color: var(--primary);
|
|
text-decoration: underline;
|
|
text-underline-offset: 3px;
|
|
cursor: pointer;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.manual-link:hover, .topic-container a:hover {
|
|
color: var(--primary-hover);
|
|
}
|
|
|
|
/* Page Navigation Footer */
|
|
.topic-nav-footer {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
margin-top: 40px;
|
|
padding-top: 24px;
|
|
border-top: 1px solid var(--border-color);
|
|
}
|
|
|
|
.nav-page-btn {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 12px 18px;
|
|
background: var(--bg-main);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 8px;
|
|
text-decoration: none;
|
|
color: var(--text-main);
|
|
max-width: 45%;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.nav-page-btn:hover {
|
|
border-color: var(--primary);
|
|
background: var(--primary-light);
|
|
}
|
|
|
|
.nav-page-btn.prev {
|
|
text-align: left;
|
|
}
|
|
|
|
.nav-page-btn.next {
|
|
text-align: right;
|
|
margin-left: auto;
|
|
}
|
|
|
|
.nav-btn-sub {
|
|
font-size: 11px;
|
|
color: var(--text-muted);
|
|
text-transform: uppercase;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.nav-btn-title {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--text-main);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
/* Welcome Page Hero */
|
|
.welcome-hero {
|
|
text-align: center;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.welcome-car-img {
|
|
width: 100%;
|
|
max-width: 900px;
|
|
max-height: 440px;
|
|
border-radius: 16px;
|
|
box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.18);
|
|
margin-bottom: 24px;
|
|
object-fit: cover;
|
|
border: 1px solid var(--border-color);
|
|
display: block;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
.welcome-title {
|
|
font-size: 32px;
|
|
font-weight: 800;
|
|
color: #0f172a;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.welcome-subtitle {
|
|
font-size: 16px;
|
|
color: var(--text-muted);
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.welcome-quick-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
|
gap: 16px;
|
|
margin: 32px 0;
|
|
}
|
|
|
|
.quick-card {
|
|
background: #f8fafc;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 10px;
|
|
padding: 20px;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
text-decoration: none;
|
|
color: var(--text-main);
|
|
}
|
|
|
|
.quick-card:hover {
|
|
transform: translateY(-3px);
|
|
border-color: var(--primary);
|
|
box-shadow: var(--shadow-md);
|
|
background: #fff;
|
|
}
|
|
|
|
.quick-card-icon {
|
|
font-size: 26px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.quick-card-title {
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
color: var(--text-main);
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.quick-card-desc {
|
|
font-size: 13px;
|
|
color: var(--text-muted);
|
|
line-height: 1.4;
|
|
}
|
|
|
|
/* Interactive Switches View */
|
|
.switches-view {
|
|
display: block;
|
|
}
|
|
|
|
.switches-tabs {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
margin-bottom: 24px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
padding-bottom: 12px;
|
|
}
|
|
|
|
.switch-tab-pill {
|
|
padding: 8px 16px;
|
|
border-radius: 20px;
|
|
background: #f1f5f9;
|
|
border: 1px solid var(--border-color);
|
|
color: #475569;
|
|
font-size: 13.5px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.switch-tab-pill.active {
|
|
background: var(--primary);
|
|
color: #fff;
|
|
border-color: var(--primary);
|
|
}
|
|
|
|
.switch-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
|
|
gap: 20px;
|
|
}
|
|
|
|
.switch-card {
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 10px;
|
|
background: #fff;
|
|
overflow: hidden;
|
|
box-shadow: var(--shadow-sm);
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.switch-card-img-wrap {
|
|
background: #f8fafc;
|
|
padding: 16px;
|
|
text-align: center;
|
|
border-bottom: 1px solid var(--border-light);
|
|
min-height: 180px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.switch-card-img {
|
|
max-height: 160px;
|
|
max-width: 100%;
|
|
object-fit: contain;
|
|
cursor: zoom-in;
|
|
}
|
|
|
|
.switch-card-body {
|
|
padding: 16px;
|
|
flex: 1;
|
|
}
|
|
|
|
.switch-card-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.switch-sub-img {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 6px;
|
|
border: 1px solid var(--border-color);
|
|
object-fit: cover;
|
|
background: #f1f5f9;
|
|
}
|
|
|
|
.switch-card-title {
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
color: var(--text-main);
|
|
}
|
|
|
|
.switch-card-sub {
|
|
font-size: 12px;
|
|
color: var(--primary);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.switch-card-detail {
|
|
font-size: 13.5px;
|
|
color: #475569;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
/* Search Dropdown / Modal */
|
|
.search-modal {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(15, 23, 42, 0.6);
|
|
backdrop-filter: blur(4px);
|
|
z-index: 2000;
|
|
align-items: flex-start;
|
|
justify-content: center;
|
|
padding-top: 80px;
|
|
}
|
|
|
|
.search-modal.open {
|
|
display: flex;
|
|
}
|
|
|
|
.search-modal-box {
|
|
width: 90%;
|
|
max-width: 680px;
|
|
max-height: 80vh;
|
|
background: #fff;
|
|
border-radius: 12px;
|
|
box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.search-modal-header {
|
|
padding: 16px 20px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.search-modal-input {
|
|
flex: 1;
|
|
border: none;
|
|
outline: none;
|
|
font-size: 17px;
|
|
font-weight: 500;
|
|
color: var(--text-main);
|
|
}
|
|
|
|
.search-modal-close {
|
|
background: transparent;
|
|
border: none;
|
|
font-size: 20px;
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
padding: 4px;
|
|
}
|
|
|
|
.search-modal-results {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 8px 0;
|
|
}
|
|
|
|
.search-result-item {
|
|
padding: 14px 20px;
|
|
border-bottom: 1px solid var(--border-light);
|
|
cursor: pointer;
|
|
transition: background 0.15s;
|
|
display: block;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.search-result-item:hover {
|
|
background-color: var(--primary-light);
|
|
}
|
|
|
|
.search-result-title {
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
color: var(--text-main);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.search-result-meta {
|
|
font-size: 12px;
|
|
color: var(--primary);
|
|
font-weight: 600;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.search-result-snippet {
|
|
font-size: 13px;
|
|
color: var(--text-muted);
|
|
line-height: 1.4;
|
|
}
|
|
|
|
/* Lightbox Modal */
|
|
.lightbox-modal {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(15, 23, 42, 0.9);
|
|
z-index: 3000;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.lightbox-modal.open {
|
|
display: flex;
|
|
}
|
|
|
|
.lightbox-img {
|
|
max-width: 90vw;
|
|
max-height: 85vh;
|
|
object-fit: contain;
|
|
border-radius: 6px;
|
|
box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.5);
|
|
transition: transform 0.2s;
|
|
}
|
|
|
|
.lightbox-close {
|
|
position: absolute;
|
|
top: 20px;
|
|
right: 24px;
|
|
color: #fff;
|
|
font-size: 32px;
|
|
background: transparent;
|
|
border: none;
|
|
cursor: pointer;
|
|
line-height: 1;
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 992px) {
|
|
.menu-toggle-btn {
|
|
display: block;
|
|
}
|
|
|
|
.app-sidebar {
|
|
position: fixed;
|
|
top: var(--header-height);
|
|
bottom: 0;
|
|
left: 0;
|
|
transform: translateX(-100%);
|
|
box-shadow: var(--shadow-lg);
|
|
}
|
|
|
|
.app-sidebar.open {
|
|
transform: translateX(0);
|
|
}
|
|
|
|
.app-content {
|
|
padding: 16px;
|
|
}
|
|
|
|
.content-wrapper {
|
|
padding: 24px 20px;
|
|
}
|
|
|
|
.header-search {
|
|
max-width: 280px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.header-search {
|
|
display: none;
|
|
}
|
|
|
|
.brand-subtitle {
|
|
display: none;
|
|
}
|
|
|
|
.switch-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
/* ==========================================================================
|
|
LANGUAGE DROPDOWN MENU
|
|
========================================================================== */
|
|
.lang-dropdown-wrapper {
|
|
position: relative;
|
|
}
|
|
|
|
.lang-arrow {
|
|
font-size: 10px;
|
|
margin-left: 4px;
|
|
transition: transform 0.2s;
|
|
}
|
|
|
|
.lang-dropdown-wrapper.open .lang-arrow {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
.lang-menu {
|
|
position: absolute;
|
|
top: calc(100% + 8px);
|
|
right: 0;
|
|
min-width: 175px;
|
|
background: #1e293b;
|
|
border: 1px solid rgba(255, 255, 255, 0.15);
|
|
border-radius: 10px;
|
|
padding: 6px;
|
|
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
|
|
display: none;
|
|
z-index: 1100;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.lang-menu.open {
|
|
display: flex;
|
|
}
|
|
|
|
.lang-option {
|
|
background: transparent;
|
|
border: none;
|
|
color: #e2e8f0;
|
|
padding: 8px 12px;
|
|
border-radius: 6px;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
text-align: left;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
width: 100%;
|
|
transition: background 0.15s, color 0.15s;
|
|
}
|
|
|
|
.lang-option:hover {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
color: #fff;
|
|
}
|
|
|
|
.lang-option.active {
|
|
background: var(--primary);
|
|
color: #fff;
|
|
font-weight: 700;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
FLUENT RTL (PERSIAN / FARSI) STYLING SUPPORT
|
|
========================================================================== */
|
|
[dir="rtl"] {
|
|
direction: rtl;
|
|
text-align: right;
|
|
font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Iran Sans", "B Yekan", Tahoma, sans-serif;
|
|
}
|
|
|
|
[dir="rtl"] body {
|
|
font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Iran Sans", "B Yekan", Tahoma, sans-serif;
|
|
}
|
|
|
|
[dir="rtl"] .brand-title {
|
|
letter-spacing: 0;
|
|
}
|
|
|
|
/* Header RTL */
|
|
[dir="rtl"] .search-input-box input {
|
|
padding: 9px 40px 9px 16px;
|
|
text-align: right;
|
|
}
|
|
|
|
[dir="rtl"] .search-icon {
|
|
right: 14px;
|
|
left: auto;
|
|
}
|
|
|
|
[dir="rtl"] .lang-menu {
|
|
right: auto;
|
|
left: 0;
|
|
}
|
|
|
|
[dir="rtl"] .lang-option {
|
|
text-align: right;
|
|
flex-direction: row;
|
|
}
|
|
|
|
[dir="rtl"] .lang-arrow {
|
|
margin-left: 0;
|
|
margin-right: 4px;
|
|
}
|
|
|
|
/* Sidebar RTL */
|
|
[dir="rtl"] .app-sidebar {
|
|
border-right: none;
|
|
border-left: 1px solid var(--border-color);
|
|
}
|
|
|
|
[dir="rtl"] .plate-header.active {
|
|
border-left: none;
|
|
border-right: 4px solid var(--primary);
|
|
}
|
|
|
|
[dir="rtl"] .plate-chevron {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
[dir="rtl"] .plate-header.open .plate-chevron {
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
[dir="rtl"] .category-title {
|
|
text-align: right;
|
|
}
|
|
|
|
[dir="rtl"] .topic-list-item {
|
|
text-align: right;
|
|
padding-left: 16px;
|
|
padding-right: 20px;
|
|
}
|
|
|
|
[dir="rtl"] .topic-list-item.active {
|
|
border-left: none;
|
|
border-right: 3px solid var(--primary);
|
|
padding-right: 28px;
|
|
padding-left: 16px;
|
|
}
|
|
|
|
/* Main Content RTL */
|
|
[dir="rtl"] .app-content {
|
|
text-align: right;
|
|
}
|
|
|
|
[dir="rtl"] .breadcrumbs {
|
|
flex-direction: row;
|
|
}
|
|
|
|
[dir="rtl"] .breadcrumb-sep {
|
|
transform: scaleX(-1);
|
|
display: inline-block;
|
|
}
|
|
|
|
[dir="rtl"] .topic-page-header {
|
|
border-left: none;
|
|
border-right: 4px solid var(--primary);
|
|
padding-left: 0;
|
|
padding-right: 18px;
|
|
}
|
|
|
|
[dir="rtl"] .topic-badges {
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
/* Alerts / Notes / Warnings RTL */
|
|
[dir="rtl"] .note,
|
|
[dir="rtl"] td.note {
|
|
border-left: none !important;
|
|
border-right: 4px solid var(--primary) !important;
|
|
text-align: right;
|
|
}
|
|
|
|
[dir="rtl"] .note.warning,
|
|
[dir="rtl"] td.note.warning {
|
|
border-left: none !important;
|
|
border-right: 4px solid #ef4444 !important;
|
|
text-align: right;
|
|
}
|
|
|
|
[dir="rtl"] .note.danger,
|
|
[dir="rtl"] td.note.danger {
|
|
border-left: none !important;
|
|
border-right: 4px solid #dc2626 !important;
|
|
text-align: right;
|
|
}
|
|
|
|
[dir="rtl"] .note.note,
|
|
[dir="rtl"] td.note.note {
|
|
border-left: none !important;
|
|
border-right: 4px solid #f59e0b !important;
|
|
text-align: right;
|
|
}
|
|
|
|
[dir="rtl"] .topic-container ul,
|
|
[dir="rtl"] .topic-container ol {
|
|
padding-left: 0;
|
|
padding-right: 24px;
|
|
}
|
|
|
|
[dir="rtl"] .topic-container table {
|
|
text-align: right;
|
|
}
|
|
|
|
[dir="rtl"] .topic-container th,
|
|
[dir="rtl"] .topic-container td {
|
|
text-align: right;
|
|
}
|
|
|
|
/* Switch Cards RTL */
|
|
[dir="rtl"] .switch-card-header {
|
|
flex-direction: row;
|
|
}
|
|
|
|
[dir="rtl"] .switch-card-body {
|
|
text-align: right;
|
|
}
|
|
|
|
[dir="rtl"] .switch-tab-pill {
|
|
text-align: center;
|
|
}
|
|
|
|
/* Topic Nav Footer RTL (Mirror Prev / Next) */
|
|
[dir="rtl"] .topic-nav-footer {
|
|
flex-direction: row-reverse;
|
|
}
|
|
|
|
[dir="rtl"] .nav-page-btn.prev {
|
|
text-align: right;
|
|
}
|
|
|
|
[dir="rtl"] .nav-page-btn.next {
|
|
text-align: left;
|
|
}
|
|
|
|
/* Search Modal RTL */
|
|
[dir="rtl"] .search-modal-header {
|
|
flex-direction: row;
|
|
}
|
|
|
|
[dir="rtl"] .search-modal-input {
|
|
text-align: right;
|
|
}
|
|
|
|
[dir="rtl"] .search-modal-close {
|
|
margin-left: 0;
|
|
margin-right: auto;
|
|
}
|
|
|
|
[dir="rtl"] .search-result-item {
|
|
text-align: right;
|
|
}
|
|
|
|
/* Mobile Sidebar RTL */
|
|
@media (max-width: 992px) {
|
|
[dir="rtl"] .app-sidebar {
|
|
left: auto;
|
|
right: 0;
|
|
transform: translateX(100%);
|
|
}
|
|
|
|
[dir="rtl"] .app-sidebar.open {
|
|
transform: translateX(0);
|
|
}
|
|
}
|
|
|
|
/* Back to Home / Car Models Button */
|
|
.btn-back-home {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px 18px;
|
|
background: rgba(255, 255, 255, 0.08);
|
|
border: 1px solid rgba(56, 189, 248, 0.4);
|
|
border-radius: 9999px;
|
|
color: #ffffff;
|
|
text-decoration: none;
|
|
font-size: 13.5px;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
|
|
white-space: nowrap;
|
|
backdrop-filter: blur(8px);
|
|
-webkit-backdrop-filter: blur(8px);
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
|
|
}
|
|
|
|
.btn-back-home:hover {
|
|
background: linear-gradient(135deg, rgba(39, 135, 166, 0.85) 0%, rgba(20, 90, 115, 0.95) 100%);
|
|
border-color: #38bdf8;
|
|
color: #ffffff;
|
|
box-shadow: 0 4px 16px rgba(56, 189, 248, 0.45);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.btn-back-home:active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.btn-back-home .back-arrow-svg,
|
|
.back-arrow {
|
|
color: #38bdf8;
|
|
stroke: #38bdf8;
|
|
transition: transform 0.2s ease, stroke 0.2s ease, color 0.2s ease;
|
|
display: inline-block;
|
|
line-height: 1;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.btn-back-home:hover .back-arrow-svg {
|
|
transform: translateX(-3px);
|
|
stroke: #ffffff;
|
|
}
|
|
|
|
.btn-back-home:hover .back-arrow {
|
|
transform: translateX(-3px);
|
|
color: #ffffff;
|
|
}
|
|
|
|
[dir="rtl"] .btn-back-home .back-arrow-svg,
|
|
[dir="rtl"] .back-arrow {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
[dir="rtl"] .btn-back-home:hover .back-arrow-svg,
|
|
[dir="rtl"] .btn-back-home:hover .back-arrow {
|
|
transform: rotate(180deg) translateX(-3px);
|
|
}
|
|
|
|
/* First-Visit Language Modal */
|
|
.lang-modal-backdrop {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(15, 23, 42, 0.72);
|
|
backdrop-filter: blur(8px);
|
|
-webkit-backdrop-filter: blur(8px);
|
|
z-index: 9999;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 20px;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: opacity 0.3s ease;
|
|
}
|
|
|
|
.lang-modal-backdrop.open {
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.lang-modal-dialog {
|
|
background: var(--bg-card);
|
|
border-radius: var(--radius-lg);
|
|
width: 100%;
|
|
max-width: 520px;
|
|
padding: 36px 32px;
|
|
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
|
|
border: 1px solid var(--border-color);
|
|
text-align: center;
|
|
transform: translateY(20px) scale(0.96);
|
|
transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
|
|
}
|
|
|
|
.lang-modal-backdrop.open .lang-modal-dialog {
|
|
transform: translateY(0) scale(1);
|
|
}
|
|
|
|
.lang-modal-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
background: var(--primary-light);
|
|
color: var(--primary);
|
|
padding: 6px 14px;
|
|
border-radius: 999px;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
margin-bottom: 16px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
.lang-modal-question {
|
|
font-size: 26px;
|
|
font-weight: 800;
|
|
color: var(--text-main);
|
|
margin-bottom: 8px;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.lang-modal-subtext {
|
|
font-size: 15px;
|
|
color: var(--text-muted);
|
|
margin-bottom: 28px;
|
|
}
|
|
|
|
.lang-modal-options-grid {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 14px;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.lang-choice-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 16px 20px;
|
|
background: var(--bg-card-alt);
|
|
border: 2px solid var(--border-color);
|
|
border-radius: var(--radius-md);
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
font-family: inherit;
|
|
}
|
|
|
|
.lang-choice-btn:hover {
|
|
border-color: var(--primary);
|
|
background: #ffffff;
|
|
transform: translateY(-2px);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
.lang-choice-btn.selected {
|
|
border-color: var(--primary);
|
|
background: var(--primary-light);
|
|
}
|
|
|
|
.lang-choice-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
}
|
|
|
|
.lang-flag {
|
|
font-size: 28px;
|
|
line-height: 1;
|
|
}
|
|
|
|
.lang-names-col {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
[dir="rtl"] .lang-names-col {
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.lang-name-en {
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
color: var(--text-main);
|
|
}
|
|
|
|
.lang-name-native {
|
|
font-size: 13px;
|
|
color: var(--text-muted);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.lang-choice-check {
|
|
width: 22px;
|
|
height: 22px;
|
|
border-radius: 50%;
|
|
border: 2px solid var(--border-color);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 12px;
|
|
color: transparent;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.lang-choice-btn:hover .lang-choice-check,
|
|
.lang-choice-btn.selected .lang-choice-check {
|
|
border-color: var(--primary);
|
|
background: var(--primary);
|
|
color: #ffffff;
|
|
}
|
|
|
|
.lang-modal-footer-note {
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
}
|