'城市详情'

This commit is contained in:
eric
2026-03-08 23:20:16 -05:00
parent e36d533a31
commit 41487dc22e
53 changed files with 3417 additions and 1206 deletions

View File

@@ -1,10 +1,17 @@
@import "tailwindcss";
@custom-variant dark (&:where(.dark, .dark *));
:root {
--background: #fafafa;
--foreground: #111827;
}
.dark {
--background: #111827;
--foreground: #f9fafb;
}
@theme inline {
--color-background: var(--background);
--color-foreground: var(--foreground);
@@ -110,6 +117,10 @@ html {
background: white;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.dark .right-item {
background: #1f2937;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.right-item:hover {
animation: pulse 0.6s ease;
@@ -189,6 +200,12 @@ html {
.filter-btn.active:hover {
background: #1f2937;
}
.dark .filter-btn.active {
background: #374151;
}
.dark .filter-btn.active:hover {
background: #4b5563;
}
/* ==================== Community Cards ==================== */
.community-card {
@@ -202,6 +219,13 @@ html {
transform: translateY(-2px);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.dark .community-card {
background: #1f2937;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.dark .community-card:hover {
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
/* ==================== Utilities ==================== */
.hide-scrollbar::-webkit-scrollbar {
@@ -225,3 +249,71 @@ html {
-webkit-box-orient: vertical;
overflow: hidden;
}
/* ==================== Form Inputs (join page) ==================== */
.form-input {
width: 100%;
border: 0;
background: transparent;
font-size: 15px;
line-height: 1.5;
color: #1e293b;
outline: none;
padding: 0;
}
.form-input::placeholder {
color: #b2b2b2;
}
@media (min-width: 640px) {
.form-input {
border: 1px solid #e2e8f0;
border-radius: 0.75rem;
padding: 0.65rem 0.875rem;
font-size: 15px;
background: #f8fafc;
transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
border-color: #0ea5e9;
box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
background: #fff;
}
textarea.form-input {
padding: 0.75rem 0.875rem;
}
select.form-input {
padding-right: 2.25rem;
cursor: pointer;
}
}
.dark .form-input {
color: #f1f5f9;
}
.dark .form-input::placeholder {
color: #94a3b8;
}
@media (min-width: 640px) {
.dark .form-input {
border-color: #475569;
background: #1e293b;
}
.dark .form-input:focus {
border-color: #0ea5e9;
background: #334155;
}
}
/* ==================== Animations ==================== */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
animation: fadeIn 0.6s ease-out;
}