17-vm/assets/css/custom.css
Flatlogic Bot 602648171f 财神
2026-02-07 15:34:20 +00:00

352 lines
6.3 KiB
CSS

:root {
--primary-color: #d4af37;
--secondary-color: #1a1a1a;
--text-color: #333;
--bg-color: #f8f9fa;
--sidebar-width: 280px;
}
body {
font-family: 'Inter', "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
background-color: var(--bg-color);
color: var(--text-color);
overflow-x: hidden;
}
/* Watermark */
.watermark-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 9999;
opacity: 0.04;
overflow: hidden;
}
.watermark-text {
position: absolute;
width: 200%;
height: 200%;
top: -50%;
left: -50%;
display: flex;
flex-wrap: wrap;
justify-content: center;
align-content: center;
transform: rotate(-30deg);
font-size: 20px;
font-weight: bold;
color: #000;
}
.watermark-item {
padding: 80px;
white-space: nowrap;
}
/* Sidebar Layout */
.wrapper {
display: flex;
min-height: 100vh;
}
#sidebar {
width: var(--sidebar-width);
background: var(--secondary-color);
color: #fff;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
position: fixed;
top: 0;
left: 0;
height: 100vh;
z-index: 1050;
box-shadow: 4px 0 10px rgba(0,0,0,0.1);
}
#content {
width: 100%;
padding: 40px;
margin-left: var(--sidebar-width);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Sidebar toggled state (desktop) */
#sidebar.collapsed {
transform: translateX(-100%);
}
#content.expanded {
margin-left: 0;
}
.sidebar-header {
padding: 30px 25px;
background: #000;
text-align: center;
}
.sidebar-header h3 {
font-size: 1.1rem;
color: var(--primary-color);
margin: 0;
font-weight: 700;
letter-spacing: 1px;
}
#sidebar ul.components {
padding: 20px 0;
}
#sidebar ul li a {
padding: 15px 25px;
display: block;
color: #adb5bd;
text-decoration: none;
transition: 0.3s;
font-size: 0.95rem;
}
#sidebar ul li a:hover, #sidebar ul li.active > a {
color: #fff;
background: rgba(212, 175, 55, 0.15);
border-left: 4px solid var(--primary-color);
}
#sidebar ul li a i {
margin-right: 12px;
}
/* Mobile Nav Bar */
.mobile-nav {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 60px;
background: var(--secondary-color);
display: none;
align-items: center;
justify-content: space-between;
padding: 0 15px;
z-index: 1040;
box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.mobile-logo-text {
color: var(--primary-color);
font-weight: bold;
font-size: 1rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 200px;
}
#sidebarCollapseMobile {
font-size: 1.5rem;
}
/* Overlay */
#overlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: rgba(0,0,0,0.5);
z-index: 1045;
display: none;
backdrop-filter: blur(2px);
}
/* Floating TG Button */
.tg-float {
position: fixed;
right: 20px;
bottom: 90px;
z-index: 1001;
text-align: center;
}
.tg-btn {
width: 50px;
height: 50px;
background-color: #0088cc;
color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
box-shadow: 0 4px 15px rgba(0,0,0,0.3);
text-decoration: none;
animation: pulse-tg 2s infinite;
}
.tg-btn:hover {
color: #fff;
}
.tg-text {
display: block;
font-size: 10px;
margin-top: 5px;
background: rgba(0,0,0,0.7);
color: #fff;
padding: 2px 6px;
border-radius: 10px;
}
@keyframes pulse-tg {
0% { box-shadow: 0 0 0 0 rgba(0, 136, 204, 0.7); }
70% { box-shadow: 0 0 0 12px rgba(0, 136, 204, 0); }
100% { box-shadow: 0 0 0 0 rgba(0, 136, 204, 0); }
}
/* Back to Top */
#back-to-top {
position: fixed;
bottom: 20px;
right: 20px;
display: none;
z-index: 1001;
width: 40px;
height: 40px;
}
/* Content Cards */
.content-card {
border: none;
border-radius: 15px;
box-shadow: 0 5px 20px rgba(0,0,0,0.05);
margin-bottom: 20px;
overflow: hidden;
}
.card-header {
background: #fff;
border-bottom: 1px solid #f0f0f0;
font-weight: 700;
padding: 15px 20px;
font-size: 1rem;
}
.card-body {
padding: 20px;
}
.text-content {
font-size: 1.05rem;
line-height: 1.7;
color: #444;
}
.step-badge {
background: var(--primary-color);
color: #fff;
padding: 4px 12px;
border-radius: 20px;
font-size: 0.75rem;
vertical-align: middle;
margin-left: 10px;
}
/* Example Sections */
.example-box {
padding: 15px;
border-radius: 10px;
font-size: 0.95rem;
}
.correct-box {
background-color: #f1f8f1;
border-left: 5px solid #28a745;
}
.wrong-box {
background-color: #fff5f5;
border-left: 5px solid #dc3545;
}
.explanation-box strong {
color: #666;
font-size: 0.85rem;
}
footer {
padding: 40px 0;
text-align: center;
border-top: 1px solid #eee;
margin-top: 30px;
}
/* Responsive Adjustments */
@media (max-width: 991px) {
#sidebar {
transform: translateX(-100%);
z-index: 2000;
}
#sidebar.active {
transform: translateX(0);
}
#content {
margin-left: 0;
padding: 85px 12px 20px 12px;
}
.mobile-nav {
display: flex;
}
.section-title-container {
flex-direction: column;
align-items: flex-start !important;
margin-bottom: 20px !important;
}
.page-title {
font-size: 1.2rem !important;
font-weight: 800;
line-height: 1.4;
}
.card-header {
padding: 10px 15px;
font-size: 0.85rem;
}
.card-body {
padding: 15px;
}
.text-content {
font-size: 0.9rem;
}
.watermark-item {
padding: 40px;
font-size: 16px;
}
.content-card {
border-radius: 10px;
margin-bottom: 15px;
}
/* Stack columns on mobile */
.row.g-3 > .col-md-6 {
flex: 0 0 100%;
max-width: 100%;
}
}
/* Desktop Hover Effects */
@media (min-width: 992px) {
.content-card {
transition: transform 0.2s;
}
.content-card:hover {
transform: translateY(-3px);
}
}