:root { --color-amber-50: #fffbeb; --color-amber-100: #fef3c7; --color-amber-200: #fde68a; --color-amber-300: #fcd34d; --color-amber-400: #fbbf24; --color-amber-500: #f59e0b; --color-amber-600: #d97706; --color-amber-700: #b45309; --color-amber-800: #92400e; --color-amber-900: #78350f; --color-stone-50: #fafaf9; --color-stone-100: #f5f5f4; --color-stone-200: #e7e5e4; --color-stone-300: #d6d3d1; --color-stone-400: #a8a29e; --color-stone-500: #78716c; --color-stone-600: #57534e; --color-stone-700: #44403c; --color-stone-800: #292524; --color-stone-900: #1c1917; --color-white: #ffffff; --color-black: #000000; --font-sans: Arial, Helvetica, sans-serif; --font-serif: Georgia, 'Times New Roman', serif; --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05); --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); --transition-default: all 0.3s ease; } * { margin: 0; padding: 0; box-sizing: border-box; } html, body { font-family: var(--font-sans); color: var(--color-stone-800); background-color: var(--color-white); line-height: 1.5; font-size: 16px; } ul { list-style: none; } img { max-width: 100%; height: auto; } a { color: inherit; text-decoration: none; } /* ========== Layout ========== */ .container { width: 100%; max-width: 1280px; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; } .min-h-screen { min-height: 100vh; } .relative { position: relative; } .absolute { position: absolute; } .fixed { position: fixed; } .inset-0 { top: 0; right: 0; bottom: 0; left: 0; } .z-0 { z-index: 0; } .z-10 { z-index: 10; } .z-20 { z-index: 20; } .z-30 { z-index: 30; } .z-50 { z-index: 50; } .flex { display: flex; } .grid { display: grid; } .hidden { display: none; } .flex-col { flex-direction: column; } .flex-row { flex-direction: row; } .flex-wrap { flex-wrap: wrap; } .items-center { align-items: center; } .items-start { align-items: flex-start; } .items-end { align-items: flex-end; } .justify-center { justify-content: center; } .justify-between { justify-content: space-between; } .gap-2 { gap: 0.5rem; } .gap-4 { gap: 1rem; } .gap-6 { gap: 1.5rem; } .gap-8 { gap: 2rem; } .gap-12 { gap: 3rem; } .space-y-1>*+* { margin-top: 0.25rem; } .space-y-2>*+* { margin-top: 0.5rem; } .space-y-4>*+* { margin-top: 1rem; } .space-x-6>*+* { margin-left: 1.5rem; } .grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); } .col-span-1 { grid-column: span 1 / span 1; } .col-span-2 { grid-column: span 2 / span 2; } .w-full { width: 100%; } .w-1 { width: 0.25rem; } .w-4 { width: 1rem; } .w-6 { width: 1.5rem; } .w-12 { width: 3rem; } .w-16 { width: 4rem; } .h-4 { height: 1rem; } .h-6 { height: 1.5rem; } .h-12 { height: 3rem; } .h-16 { height: 4rem; } .h-48 { height: 12rem; } .h-60 { height: 15rem; } .h-64 { height: 16rem; } .h-80 { height: 20rem; } .h-92 { height: 23.3rem; } .h-96 { height: 24rem; } .h-full { height: 100%; } .h-500 { height: 100%; } .h-screen { height: 600px; } .h-\[50vh\] { height: 50vh; } .h-\[60vh\] { height: 60vh; } .h-\[400px\] { height: 400px; } .h-\[500px\] { height: 500px; } .max-h-\[90vh\] { max-height: 90vh; } .max-w-none { max-width: none; } .max-w-2xl { max-width: 42rem; } .max-w-3xl { max-width: 48rem; } .max-w-4xl { max-width: 56rem; } .max-w-6xl { max-width: 72rem; } .overflow-hidden { overflow: hidden; } .overflow-auto { overflow: auto; } .rounded-md { border-radius: 0.375rem; } .rounded-lg { border-radius: 0.5rem; } .rounded-full { border-radius: 9999px; } .border-4 { border-width: 4px; } .border-t { border-top-width: 1px; } .border-amber-700 { border-color: var(--color-amber-700); } .border-stone-700 { border-color: var(--color-stone-700); } .object-cover { object-fit: cover; } .object-contain { object-fit: contain; } .p-2 { padding: 0.5rem; } .p-4 { padding: 1rem; } .p-6 { padding: 1.5rem; } .p-8 { padding: 2rem; } .px-2 { padding-left: 0.5rem; padding-right: 0.5rem; } .px-3 { padding-left: 0.75rem; padding-right: 0.75rem; } .px-4 { padding-left: 1rem; padding-right: 1rem; } .px-6 { padding-left: 1.5rem; padding-right: 1.5rem; } .px-8 { padding-left: 2rem; padding-right: 2rem; } .py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; } .py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; } .py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; } .py-4 { padding-top: 1rem; padding-bottom: 1rem; } .py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; } .py-8 { padding-top: 2rem; padding-bottom: 2rem; } .py-12 { padding-top: 3rem; padding-bottom: 3rem; } .py-16 { padding-top: 4rem; padding-bottom: 4rem; } .py-20 { padding-top: 5rem; padding-bottom: 5rem; } .pt-8 { padding-top: 2rem; } .pb-2 { padding-bottom: 0.5rem; } .mb-1 { margin-bottom: 0.25rem; } .mb-2 { margin-bottom: 0.5rem; } .mb-3 { margin-bottom: 0.75rem; } .mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; } .mb-12 { margin-bottom: 3rem; } .mb-16 { margin-bottom: 4rem; } .mb-20 { margin-bottom: 5rem; } .mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; } .mt-4 { margin-top: 1rem; } .mt-8 { margin-top: 2rem; } .mt-12 { margin-top: 3rem; } .mx-auto { margin-left: auto; margin-right: auto; } .ml-auto { margin-left: auto; } .mr-auto { margin-right: auto; } .transform { transform: translateX(-50%); } .translate-x-1\/2 { transform: translateX(-50%); } .transition-colors { transition: color 0.3s ease, background-color 0.3s ease; } .transition-transform { transition: transform 0.5s ease; } .transition-opacity { transition: opacity 0.3s ease; } .transition-shadow { transition: box-shadow 0.3s ease; } .scale-105 { transform: scale(1.05); } .scale-110 { transform: scale(1.1); } .opacity-0 { opacity: 0; } .opacity-80 { opacity: 0.8; } .opacity-100 { opacity: 1; } .shadow-sm { box-shadow: var(--shadow-sm); } .shadow-md { box-shadow: var(--shadow-md); } .shadow-lg { box-shadow: var(--shadow-lg); } .shadow-xl { box-shadow: var(--shadow-xl); } /* ========== Typography ========== */ .text-xs { font-size: 0.75rem; } .text-sm { font-size: 0.875rem; } .text-base { font-size: 1rem; } .text-lg { font-size: 1.125rem; } .text-xl { font-size: 1.25rem; } .text-2xl { font-size: 1.5rem; } .text-3xl { font-size: 1.875rem; } .text-4xl { font-size: 2.25rem; } .text-6xl { font-size: 3.75rem; } .font-medium { font-weight: 500; } .font-bold { font-weight: 700; } .font-serif { font-family: var(--font-serif); } .text-center { text-align: center; } .text-white { color: var(--color-white); } .text-black { color: var(--color-black); } .text-amber-50 { color: var(--color-amber-50); } .text-amber-100 { color: var(--color-amber-100); } .text-amber-200 { color: var(--color-amber-200); } .text-amber-400 { color: var(--color-amber-400); } .text-amber-600 { color: var(--color-amber-600); } .text-amber-700 { color: var(--color-amber-700); } .text-amber-800 { color: var(--color-amber-800); } .text-stone-300 { color: var(--color-stone-300); } .text-stone-400 { color: var(--color-stone-400); } .text-stone-500 { color: var(--color-stone-500); } .text-stone-600 { color: var(--color-stone-600); } .text-stone-700 { color: var(--color-stone-700); } .text-stone-800 { color: var(--color-stone-800); } .text-white\/90 { color: rgba(255, 255, 255, 0.9); } .leading-relaxed { line-height: 1.625; } .list-disc { list-style-type: disc; } .list-inside { list-style-position: inside; } /* ========== Backgrounds ========== */ .bg-white { background-color: var(--color-white); background: url(../images/bg.jpg); } .bg-white1 { background-color: rgb(248, 248, 248); } .bg-black { background-color: var(--color-black); } .bg-amber-50 { background-color: var(--color-amber-50); } .bg-amber-100 { background-color: var(--color-amber-100); } .bg-amber-500 { background-color: var(--color-amber-500); } .bg-amber-600 { background-color: var(--color-amber-600); } .bg-amber-700 { background-color: var(--color-amber-700); } .bg-stone-50 { background-color: var(--color-stone-50); } .bg-stone-100 { background: url(../images/bg2.jpg); background-repeat: no-repeat; background-size: cover; } .bg-stone-200 { background-color: var(--color-stone-200); } .bg-stone-700 { background-color: var(--color-stone-700); } .bg-stone-800 { background-color: var(--color-stone-800); } .bg-stone-900 { background-color: var(--color-stone-900); } .bg-black\/40 { background-color: rgba(0, 0, 0, 0.4); } .bg-black\/50 { background-color: rgba(0, 0, 0, 0.5); } .bg-black\/70 { background-color: rgba(0, 0, 0, 0.7); } .bg-black\/80 { background-color: rgba(0, 0, 0, 0.8); } .bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); } .bg-gradient-to-b { background-image: linear-gradient(to bottom, var(--gradient-stops)); } .from-black\/40 { --gradient-stops: rgba(0, 0, 0, 0.4), var(--gradient-to); } .to-black\/70 { --gradient-to: rgba(0, 0, 0, 0.548); } .backdrop-blur-sm { backdrop-filter: blur(4px); } /* ========== Components ========== */ /* Header & Navigation */ header { position: relative; } header.hero { display: flex; align-items: center; justify-content: center; overflow: hidden; } nav { display: flex; align-items: center; justify-content: space-between; } nav ul { display: flex; list-style: none; } nav a { font-size: 1.1em; } nav a:hover, nav a.active { color: var(--color-amber-400); font-weight: bold; } .tang-logo { font-family: 'Noto Serif SC', serif; font-size: 2rem; background: linear-gradient(45deg, #FFD700, #FF8C00); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); letter-spacing: 2px; transition: all 0.3s ease; line-height: 38px; } .tang-logo:hover { transform: scale(0.96); } /* Buttons */ .btn { display: inline-block; padding: 0.75rem 2rem; font-weight: 500; border-radius: 0.375rem; transition: all 0.3s ease; cursor: pointer; } .btn-primary { background-color: var(--color-amber-700); color: var(--color-white); } .btn-primary:hover { background-color: var(--color-amber-800); } .btn-secondary { background-color: var(--color-white); color: var(--color-amber-700); } .btn-secondary:hover { background-color: var(--color-stone-100); } .btn-outline { background-color: transparent; border: 2px solid var(--color-white); color: var(--color-white); } .btn-outline:hover { background-color: rgba(255, 255, 255, 0.1); } /* Cards */ .card { background-color: var(--color-white); border-radius: 0.5rem; overflow: hidden; box-shadow: var(--shadow-md); transition: box-shadow 0.3s ease; } .card:hover { box-shadow: var(--shadow-lg); } .card-img { position: relative; height: 12rem; overflow: hidden; } .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; } .card:hover .card-img img { transform: scale(1.05); } .card-body { padding: 1.5rem; } .card-title { font-size: 1.25rem; font-weight: 700; color: var(--color-stone-800); margin-bottom: 0.5rem; } .card-text { color: var(--color-stone-700); } /* Timeline */ .timeline { position: relative; } .timeline::before { content: ''; position: absolute; left: 50%; transform: translateX(-50%); height: 100%; width: 0.25rem; background-color: var(--color-amber-600); } .timeline-item { position: relative; margin-bottom: 4rem; } .timeline-item:nth-child(odd) { margin-left: auto; margin-right: 50%; width: 45%; } .timeline-item:nth-child(even) { margin-right: auto; margin-left: 50%; width: 45%; } .timeline-dot { position: absolute; top: 0; width: 1rem; height: 1rem; border-radius: 50%; background-color: var(--color-amber-500); border: 4px solid var(--color-amber-700); box-shadow: var(--shadow-md); } .timeline-item:nth-child(odd) .timeline-dot { right: -2rem; } .timeline-item:nth-child(even) .timeline-dot { left: -2rem; } .timeline-content { background-color: var(--color-stone-50); border-radius: 0.5rem; padding: 1.5rem; box-shadow: var(--shadow-md); } .timeline-date { display: inline-block; padding: 0.25rem 0.75rem; margin-bottom: 0.5rem; background-color: var(--color-amber-600); color: var(--color-white); font-size: 0.875rem; font-weight: 500; border-radius: 9999px; } .timeline-title { font-size: 1.25rem; font-weight: 700; color: var(--color-stone-800); margin-bottom: 0.5rem; } .timeline-description { color: var(--color-stone-700); } /* Gallery */ .gallery-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 3rem; } .filter-btn { padding: 0.5rem 1.5rem; border-radius: 9999px; font-size: 0.875rem; font-weight: 500; transition: all 0.3s ease; cursor: pointer; } .filter-btn.active { background-color: var(--color-amber-600); color: var(--color-white); } .filter-btn:not(.active) { background-color: var(--color-stone-100); color: var(--color-stone-700); } .filter-btn:not(.active):hover { background-color: var(--color-stone-200); } .gallery-grid { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 2rem; } .gallery-item { background-color: var(--color-stone-50); border-radius: 0.5rem; overflow: hidden; box-shadow: var(--shadow-md); transition: box-shadow 0.3s ease; cursor: pointer; } .gallery-item:hover { box-shadow: var(--shadow-xl); } .gallery-img { position: relative; height: 16rem; } .gallery-img img { width: 100%; height: 100%; object-fit: cover; } .gallery-info { padding: 1.5rem; } .gallery-category { display: inline-block; padding: 0.25rem 0.75rem; margin-bottom: 0.5rem; background-color: var(--color-amber-600); color: var(--color-white); font-size: 0.75rem; font-weight: 500; border-radius: 0.25rem; } .gallery-title { font-size: 1.25rem; font-weight: 700; color: var(--color-stone-800); margin-bottom: 0.25rem; } .gallery-subtitle { font-size: 1.125rem; color: var(--color-stone-700); margin-bottom: 0.5rem; } .gallery-meta { font-size: 0.875rem; color: var(--color-stone-600); } /* Modal */ .modal { position: fixed; inset: 0; background-color: rgba(0, 0, 0, 0.8); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 1rem; } .modal-content { background-color: var(--color-white); border-radius: 0.5rem; max-width: 56rem; width: 100%; max-height: 90vh; overflow: auto; } .modal-img { position: relative; height: 50vh; } .modal-img img { width: 100%; height: 100%; object-fit: contain; } .modal-body { padding: 2rem; } .modal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; } .modal-close { background-color: var(--color-stone-200); padding: 0.5rem; border-radius: 9999px; cursor: pointer; transition: background-color 0.3s ease; } .modal-close:hover { background-color: var(--color-stone-300); } .modal-grid { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 1.5rem; margin-bottom: 1.5rem; } .modal-label { color: var(--color-stone-600); font-weight: 500; margin-bottom: 0.25rem; } .modal-value { color: var(--color-stone-800); } /* Footer */ footer { background-color: var(--color-stone-900); color: var(--color-white); padding: 3rem 0; } .footer-grid { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 2rem; } .footer-title { font-size: 1.25rem; font-weight: 700; color: var(--color-amber-500); margin-bottom: 1rem; } .footer-text { color: var(--color-stone-400); } .footer-links { list-style: none; } .footer-links li { margin-bottom: 0.5rem; } .footer-links a { color: var(--color-stone-400); transition: color 0.3s ease; } .footer-links a:hover { color: var(--color-amber-400); } .footer-bottom { border-top: 1px solid var(--color-stone-700); margin-top: 2rem; padding-top: 2rem; text-align: center; color: var(--color-stone-500); } /* ========== Responsive Styles ========== */ @media (min-width: 768px) { .md\:flex-row { flex-direction: row; } .md\:flex-row-reverse { flex-direction: row-reverse; } .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .md\:w-1\/2 { width: 50%; } .md\:w-1\/3 { width: 33.333333%; } .md\:w-2\/3 { width: 66.666667%; } .md\:ml-\[50\%\] { margin-left: 50%; } .md\:mr-\[50\%\] { margin-right: 50%; } .md\:block { display: block; } .md\:text-6xl { font-size: 3.75rem; } .md\:text-2xl { font-size: 1.5rem; } .md\:order-1 { order: 1; } .md\:order-2 { order: 2; } .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .modal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } } @media (min-width: 1024px) { .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } } /* ========== Animations ========== */ @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes slideInUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } } .animate-fadeIn { animation: fadeIn 0.5s ease-in-out; } .animate-slideInUp { animation: slideInUp 0.5s ease-in-out; } /* ========== Utility Classes ========== */ .cursor-pointer { cursor: pointer; } .group:hover .group-hover\:scale-105 { transform: scale(1.05); } .group:hover .group-hover\:scale-110 { transform: scale(1.1); } .group:hover .group-hover\:opacity-100 { opacity: 1; } .group:hover .group-hover\:shadow-xl { box-shadow: var(--shadow-xl); } .hover\:bg-amber-600:hover { background-color: var(--color-amber-600); } .hover\:bg-amber-800:hover { background-color: var(--color-amber-800); } .hover\:bg-stone-100:hover { background-color: var(--color-stone-100); } .hover\:bg-stone-200:hover { background-color: var(--color-stone-200); } .hover\:bg-white\/10:hover { background-color: rgba(255, 255, 255, 0.1); } .hover\:text-amber-400:hover { color: var(--color-amber-400); } .hover\:text-amber-50:hover { color: var(--color-amber-50); } .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; } /* ECharts Dashboard Styles */ .dashboard-container { background-color: var(--color-stone-800); border-radius: 0.5rem; padding: 1.5rem; box-shadow: var(--shadow-lg); } .chart-container { background-color: var(--color-stone-900); border-radius: 0.375rem; overflow: hidden; box-shadow: var(--shadow-md); } /* ========== 留言页面特定样式 ========== */ .message-form-container { position: relative; background-color: var(--color-white); border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow-xl); } .message-form-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url('https://via.placeholder.com/1920x1080'); background-size: cover; background-position: center; opacity: 0.1; z-index: 0; } .message-form { position: relative; z-index: 1; padding: 3rem; } .form-group { margin-bottom: 1.5rem; } .form-label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--color-stone-800); } .form-input, .form-textarea, .form-select { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--color-stone-300); border-radius: 0.5rem; background-color: var(--color-white); color: var(--color-stone-800); transition: all 0.3s ease; } .form-input:focus, .form-textarea:focus, .form-select:focus { outline: none; border-color: var(--color-amber-500); box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1); } .form-textarea { min-height: 150px; resize: vertical; } .form-submit { display: inline-block; padding: 0.75rem 2rem; background-color: var(--color-amber-700); color: var(--color-white); font-weight: 500; border: none; border-radius: 0.5rem; cursor: pointer; transition: all 0.3s ease; } .form-submit:hover { background-color: var(--color-amber-800); transform: translateY(-2px); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); } .form-submit:active { transform: translateY(0); } /* 装饰元素 */ .decorative-pattern { position: absolute; width: 300px; height: 300px; background-image: url('https://via.placeholder.com/300x300'); background-size: contain; background-repeat: no-repeat; opacity: 0.05; z-index: 0; } .pattern-top-right { top: -100px; right: -100px; transform: rotate(45deg); } .pattern-bottom-left { bottom: -100px; left: -100px; transform: rotate(-45deg); } /* 浮动元素 */ .floating-element { position: absolute; border-radius: 50%; background-color: var(--color-amber-500); opacity: 0.1; z-index: 0; } .float-1 { width: 100px; height: 100px; top: 10%; left: 5%; animation: float 8s ease-in-out infinite; } .float-2 { width: 150px; height: 150px; bottom: 15%; right: 10%; animation: float 12s ease-in-out infinite; } .float-3 { width: 70px; height: 70px; top: 40%; right: 5%; animation: float 10s ease-in-out infinite; } @keyframes float { 0% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-20px) rotate(5deg); } 100% { transform: translateY(0) rotate(0deg); } } /* 特效样式 */ .reveal-element { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease; } .reveal-element.revealed { opacity: 1; transform: translateY(0); } .stagger-1 { transition-delay: 0.1s; } .stagger-2 { transition-delay: 0.2s; } .stagger-3 { transition-delay: 0.3s; } /* 输入框特效 */ .input-effect { position: relative; margin-bottom: 2rem; } .input-effect input, .input-effect textarea { width: 100%; padding: 0.75rem 1rem; border: none; border-bottom: 2px solid var(--color-stone-300); border-radius: 0; background-color: transparent; color: var(--color-stone-800); transition: all 0.3s ease; } .input-effect input:focus, .input-effect textarea:focus { outline: none; border-color: var(--color-amber-600); } .input-effect label { position: absolute; top: 0.75rem; left: 1rem; color: var(--color-stone-500); pointer-events: none; transition: all 0.3s ease; } .input-effect input:focus~label, .input-effect input:not(:placeholder-shown)~label, .input-effect textarea:focus~label, .input-effect textarea:not(:placeholder-shown)~label { top: -1.25rem; left: 0; font-size: 0.875rem; color: var(--color-amber-700); } /* 按钮波纹效果 */ .ripple-btn { position: relative; overflow: hidden; } .ripple-btn .ripple { position: absolute; border-radius: 50%; background-color: rgba(255, 255, 255, 0.4); transform: scale(0); animation: ripple 0.6s linear; } @keyframes ripple { to { transform: scale(4); opacity: 0; } } /* 成功消息样式 */ .success-message { display: none; background-color: rgba(16, 185, 129, 0.1); border-left: 4px solid #10b981; padding: 1rem; border-radius: 0.5rem; margin-bottom: 1.5rem; } .success-message.show { display: block; animation: fadeIn 0.5s ease-in-out; }