:root {
--primary-color: #3498db;
--secondary-color: #f1c40f;
--dark-color: #2c3e50;
--light-color: #ecf0f1;
--card-bg: #ffffff; --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
--transition: all 0.3s ease;
--bookmark-color: #e74c3c;
--nav-item-height: 100px;
--section-spacing: 20px; }
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
background: linear-gradient(135deg, #1a2a6c, #b21f1f, #1a2a6c);
background-size: 400% 400%;
color: #333;
line-height: 1.6;
min-height: 100vh;
padding: var(--section-spacing); }
@keyframes gradientBG {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
.container {
max-width: 1000px;
margin: 0 auto;
display: flex;
flex-direction: column;
gap: var(--section-spacing); } header {
text-align: center;
padding: 15px 10px;
background: rgba(44, 62, 80, 0.9); border-radius: 10px;
box-shadow: var(--shadow);
position: relative;
overflow: hidden;
backdrop-filter: blur(5px);
margin-top: 0; }
h1 {
font-size: 1.8rem;
color: var(--secondary-color);
margin-bottom: 8px;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
letter-spacing: 1px;
}
.datetime-container {
background: rgba(0, 0, 0, 0.6); display: inline-block;
padding: 6px 15px;
border-radius: 50px;
margin-top: 5px;
}
#current-time {
font-size: 1.2rem;
font-weight: bold;
color: var(--secondary-color);
letter-spacing: 1px;
} .nav-list {
background: var(--card-bg);
border-radius: 10px;
overflow: hidden;
box-shadow: var(--shadow);
}
.nav-item {
display: flex;
align-items: center;
padding: 20px 25px;
min-height: var(--nav-item-height);
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
transition: var(--transition);
}
.nav-item:last-child {
border-bottom: none;
}
.nav-item:hover {
background: rgba(52, 152, 219, 0.05);
}
.nav-icon {
font-size: 1.8rem;
width: 60px;
height: 60px;
background: var(--primary-color);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin-right: 20px;
color: white;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
flex-shrink: 0;
transition: var(--transition);
}
.nav-item:hover .nav-icon {
transform: scale(1.1);
background: var(--secondary-color);
color: var(--dark-color);
}
.nav-info {
flex: 1;
min-width: 0;
overflow: hidden;
display: flex;
flex-direction: column;
justify-content: center;
height: 100%;
}
.nav-title {
font-size: 1.5rem;
font-weight: bold;
color: var(--dark-color);
margin-bottom: 6px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.nav-description {
color: #666;
font-size: 1.05rem;
line-height: 1.5;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
text-overflow: ellipsis;
}
.nav-action {
margin-left: 15px;
flex-shrink: 0;
display: flex;
align-items: center;
height: 100%;
}
.nav-link {
display: inline-block;
background: var(--secondary-color);
color: var(--dark-color);
text-decoration: none;
padding: 12px 25px;
border-radius: 8px;
font-weight: bold;
font-size: 1.05rem;
transition: var(--transition);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
min-width: 120px;
text-align: center;
}
.nav-link:hover {
background: #e2b607;
transform: translateY(-3px);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.nav-link i {
margin-left: 8px;
transition: var(--transition);
}
.nav-link:hover i {
transform: translateX(5px);
} .bookmark-panel {
text-align: center;
padding: 20px;
background: #fff; border-radius: 10px;
border: 2px dashed var(--bookmark-color);
box-shadow: var(--shadow);
}
.bookmark-title {
color: var(--bookmark-color);
font-size: 1.5rem;
margin-bottom: 15px;
font-weight: bold;
}
.bookmark-btn {
display: inline-block;
background: var(--bookmark-color);
color: white;
text-decoration: none;
padding: 14px 35px;
border-radius: 50px;
font-size: 1.2rem;
font-weight: bold;
transition: var(--transition);
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
border: 2px solid white;
position: relative;
overflow: hidden;
cursor: pointer;
border: none;
}
.bookmark-btn:hover {
background: #c0392b;
transform: translateY(-3px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
.bookmark-btn::before {
content: "";
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
transition: var(--transition);
}
.bookmark-btn:hover::before {
transform: rotate(45deg) translate(0, 0);
}
.bookmark-tip {
margin-top: 15px;
font-size: 1.1rem;
color: var(--bookmark-color);
font-weight: 500;
} footer {
background: rgba(44, 62, 80, 0.9);
color: var(--light-color);
padding: 30px 20px;
border-radius: 10px;
text-align: center;
backdrop-filter: blur(5px);
}
.footer-intro {
font-size: 1.1rem;
max-width: 800px;
margin: 0 auto 20px;
line-height: 1.7;
}
.footer-intro a {
color: var(--secondary-color);
text-decoration: none;
}
.footer-intro a:hover {
text-decoration: underline;
}
.copyright {
font-size: 1rem;
border-top: 1px solid rgba(255, 255, 255, 0.1);
padding-top: 15px;
margin-top: 20px;
} @media (max-width: 768px) {
:root {
--nav-item-height: 110px;
--section-spacing: 15px; }
body {
padding: var(--section-spacing);
}
header {
padding: 12px 8px;
}
h1 {
font-size: 1.5rem;
margin-bottom: 5px;
}
#current-time {
font-size: 1rem;
}
.datetime-container {
padding: 5px 12px;
}
.nav-item {
padding: 18px 15px;
flex-wrap: nowrap;
}
.nav-icon {
width: 55px;
height: 55px;
font-size: 1.6rem;
margin-right: 15px;
}
.nav-title {
font-size: 1.3rem;
}
.nav-description {
font-size: 1rem;
}
.nav-link {
padding: 10px 18px;
font-size: 1rem;
min-width: 110px;
}
.bookmark-btn {
padding: 12px 30px;
font-size: 1.1rem;
}
.bookmark-title {
font-size: 1.3rem;
}
.footer-intro, .copyright {
font-size: 1rem;
}
}
@media (max-width: 480px) {
:root {
--nav-item-height: 120px;
--section-spacing: 12px; }
body {
padding: var(--section-spacing);
}
header {
padding: 10px 5px;
}
h1 {
font-size: 1.3rem;
}
#current-time {
font-size: 0.9rem;
}
.datetime-container {
padding: 4px 10px;
}
.nav-item {
padding: 15px 10px;
}
.nav-icon {
width: 50px;
height: 50px;
font-size: 1.4rem;
margin-right: 12px;
}
.nav-title {
font-size: 1.2rem;
}
.nav-description {
font-size: 0.95rem;
-webkit-line-clamp: 2;
}
.nav-link {
padding: 9px 15px;
font-size: 0.95rem;
min-width: 100px;
}
.bookmark-btn {
padding: 10px 25px;
font-size: 1.05rem;
}
.bookmark-title {
font-size: 1.2rem;
}
.bookmark-tip {
font-size: 1rem;
}
footer {
padding: 25px 15px;
}
.footer-intro {
font-size: 1rem;
}
.copyright {
font-size: 0.95rem;
}
} .admin-container {
background: var(--card-bg);
border-radius: 15px;
padding: 30px;
box-shadow: var(--shadow);
margin-bottom: 40px;
}
.admin-title {
font-size: 2.5rem;
color: var(--dark-color);
margin-bottom: 30px;
text-align: center;
border-bottom: 2px solid #f1f5f9;
padding-bottom: 15px;
}
.admin-panel {
margin-top: 40px;
}
.admin-section {
margin-bottom: 40px;
padding: 25px;
background: #f8fafc;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.admin-section h2 {
font-size: 1.8rem;
color: var(--primary-color);
margin-bottom: 25px;
display: flex;
align-items: center;
}
.admin-section h2 i {
margin-right: 12px;
}
.admin-form .form-group {
margin-bottom: 20px;
}
.admin-form label {
display: block;
font-weight: 600;
margin-bottom: 8px;
color: var(--dark-color);
}
.admin-form input[type="text"],
.admin-form input[type="url"],
.admin-form textarea {
width: 100%;
padding: 12px 15px;
border: 2px solid #e2e8f0;
border-radius: 8px;
font-size: 1rem;
transition: all 0.3s ease;
}
.admin-form input[type="text"]:focus,
.admin-form input[type="url"]:focus,
.admin-form textarea:focus {
border-color: var(--primary-color);
outline: none;
box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}
.icon-input-group {
display: flex;
}
.icon-input-group input {
flex: 1;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
.icon-selector-btn {
background: var(--primary-color);
color: white;
border: none;
padding: 0 15px;
border-top-right-radius: 8px;
border-bottom-right-radius: 8px;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
}
.icon-selector-btn:hover {
background: #2980b9;
}
.icon-selector-btn i {
margin-right: 5px;
}
.icon-preview-label {
font-size: 0.9rem;
color: #718096;
margin-bottom: 5px;
}
.nav-icon-preview {
width: 50px;
height: 50px;
background: var(--primary-color);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 1.5rem;
}
.admin-table-container {
overflow-x: auto;
}
.admin-table {
width: 100%;
border-collapse: collapse;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.admin-table th {
background: var(--primary-color);
color: white;
text-align: left;
padding: 15px;
font-weight: 600;
}
.admin-table td {
padding: 15px;
border-bottom: 1px solid #e2e8f0;
}
.admin-table tr:nth-child(even) {
background: #f8fafc;
}
.admin-table tr:hover {
background: #edf2f7;
}
.admin-table i {
font-size: 1.5rem;
color: var(--primary-color);
}
.actions {
display: flex;
gap: 10px;
}
.edit-link, .delete-link {
padding: 8px 15px;
border-radius: 6px;
border: none;
cursor: pointer;
font-size: 0.9rem;
transition: all 0.3s ease;
display: flex;
align-items: center;
}
.edit-link {
background: #f1c40f;
color: var(--dark-color);
}
.edit-link:hover {
background: #e2b607;
}
.delete-link {
background: #e74c3c;
color: white;
}
.delete-link:hover {
background: #c0392b;
}
.edit-link i, .delete-link i {
margin-right: 5px;
font-size: 0.9rem;
color: inherit;
}
.admin-message {
text-align: center;
padding: 40px;
background: #fff8f8;
border-radius: 12px;
border: 2px dashed #e74c3c;
}
.admin-message i {
font-size: 3rem;
color: #e74c3c;
margin-bottom: 20px;
}
.admin-message p {
font-size: 1.5rem;
margin-bottom: 30px;
color: #2c3e50;
} @media (max-width: 768px) {
.admin-container {
padding: 20px;
}
.admin-title {
font-size: 2rem;
}
.admin-section {
padding: 20px;
}
.admin-table th, .admin-table td {
padding: 12px;
}
.actions {
flex-direction: column;
gap: 5px;
}
}
@media (max-width: 480px) {
.admin-container {
padding: 15px;
}
.admin-title {
font-size: 1.8rem;
}
.admin-section h2 {
font-size: 1.5rem;
}
.admin-table th, .admin-table td {
padding: 10px;
font-size: 0.9rem;
}
}