Files
2025-12-13 21:33:26 +08:00

561 lines
11 KiB
CSS

body {
font-family: 'Segoe UI', Roboto, "Helvetica Neue", Arial, sans-serif;
background: linear-gradient(135deg, #f5e8f0 0%, #f3e5fc 100%);
color: #5e5166;
margin: 0;
padding: 0;
min-height: 100vh;
box-sizing: border-box;
position: relative;
overflow-x: hidden;
}
.container {
background-color: rgba(255, 255, 255, 0.9);
padding: 25px 30px;
border-radius: 16px;
box-shadow: 0 8px 32px rgba(155, 89, 182, 0.15);
width: 90%;
max-width: 600px;
text-align: center;
margin: 40px auto;
backdrop-filter: blur(8px);
border: 1px solid rgba(255, 255, 255, 0.5);
}
h1 {
font-family: '楷体', 'STKaiti', '华文楷体', KaiTi, '宋体', SimSun, sans-serif;
color: #d873a9;
margin-bottom: 10px;
font-size: 2.4em;
text-shadow: 0 2px 4px rgba(0,0,0,0.05);
letter-spacing: 1px;
}
h2 {
color: #b07cc6;
margin-top: 20px;
margin-bottom: 20px;
font-weight: 600;
font-size: 1.5em;
}
h2 i {
margin-right: 8px;
color: #c27ba0;
}
.action-section {
margin-bottom: 30px;
padding: 25px 20px;
background-color: #fff;
border-radius: 12px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
position: relative;
overflow: hidden;
}
.throw-section {
border-top: 4px solid #ffb6c1;
}
.pickup-section {
border-top: 4px solid #c5a3ff;
}
.action-section::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23f9e0f0' fill-opacity='0.2' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
opacity: 0.5;
z-index: -1;
}
label {
display: block;
margin-bottom: 8px;
color: #7d5ba6;
font-weight: 600;
text-align: left;
font-size: 0.95em;
}
input[type="text"],
textarea,
select {
width: 100%;
padding: 12px 15px;
margin-bottom: 18px;
border: 1px solid #e1d1f0;
border-radius: 8px;
background-color: #fdfaff;
color: #5e4b6b;
font-size: 0.95em;
box-sizing: border-box;
transition: all 0.3s ease;
}
input[type="text"]:focus,
textarea:focus,
select:focus {
outline: none;
border-color: #d291bc;
box-shadow: 0 0 0 3px rgba(219, 112, 194, 0.1);
}
textarea {
resize: vertical;
min-height: 80px;
}
::placeholder {
color: #cbb8db;
opacity: 0.7;
}
button {
background-color: #aa67e5;
color: white;
padding: 12px 25px;
border: none;
border-radius: 30px;
cursor: pointer;
font-size: 1.05em;
font-weight: 600;
transition: all 0.3s ease;
box-shadow: 0 4px 8px rgba(170, 103, 229, 0.3);
position: relative;
overflow: hidden;
display: inline-flex;
align-items: center;
justify-content: center;
}
.btn-throw {
background: linear-gradient(135deg, #ff8fbc 0%, #eb6dab 100%);
}
.btn-pickup {
background: linear-gradient(135deg, #a47aed 0%, #876bd3 100%);
}
button i {
margin-right: 8px;
}
button:hover {
transform: translateY(-2px);
box-shadow: 0 6px 15px rgba(170, 103, 229, 0.4);
}
button:active {
transform: translateY(0);
}
#throw-status,
#pickup-status {
margin-top: 15px;
font-style: italic;
color: #b56ab0;
min-height: 1.5em;
font-weight: 500;
}
#bottle-display {
margin-top: 25px;
padding: 0;
background-color: #fff;
border-radius: 12px;
text-align: left;
overflow: hidden;
box-shadow: 0 5px 15px rgba(138, 80, 201, 0.1);
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
border: 1px solid #f1e1fb;
}
.bottle-header {
background: linear-gradient(135deg, #f9ddff 0%, #e9cdff 100%);
padding: 15px 20px;
position: relative;
border-bottom: 1px solid #f1e1ff;
display: flex;
align-items: center;
}
#bottle-avatar {
max-width: 60px;
border-radius: 50%;
border: 3px solid white;
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
margin-right: 15px;
}
.gender-badge {
display: inline-block;
padding: 2px 8px;
border-radius: 12px;
font-size: 0.8em;
margin-left: 8px;
background-color: #f0e6ff;
color: #7155a8;
}
#bottle-display h3 {
color: #8156c5;
margin: 0;
font-size: 1.2em;
flex-grow: 1;
}
.message-content {
padding: 20px;
background-color: #fff;
}
#bottle-display p {
white-space: pre-wrap;
word-wrap: break-word;
margin: 0;
color: #51456a;
line-height: 1.6;
font-size: 1.05em;
}
.bottle-footer {
padding: 12px 20px;
background-color: #fbf8ff;
border-top: 1px solid #f1e8ff;
}
.bottle-info small {
display: inline-block;
margin-right: 15px;
color: #9d8aaf;
font-size: 0.85em;
}
.bottle-info i {
margin-right: 5px;
color: #b67fdb;
}
.bottle-reactions {
margin-top: 15px;
display: flex;
gap: 15px;
justify-content: flex-end;
}
.reaction-btn {
background: #ffffff;
border: 1px solid #e9d8ff;
border-radius: 20px;
padding: 6px 15px;
font-size: 0.9em;
display: inline-flex;
align-items: center;
cursor: pointer;
transition: all 0.2s ease;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.reaction-btn i {
margin-right: 6px;
font-size: 1.1em;
}
.like-btn {
color: #5aaa9d;
}
.like-btn:hover:not(:disabled) {
background-color: #e5fff8;
border-color: #93e7d7;
}
.dislike-btn {
color: #d76b8b;
}
.dislike-btn:hover:not(:disabled) {
background-color: #fff1f5;
border-color: #ffb8c9;
}
.reaction-btn:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.cooldown-timer {
margin-top: 15px;
background-color: #f8f0ff;
padding: 10px 15px;
border-radius: 25px;
color: #aa67e5;
font-size: 0.95em;
display: inline-flex;
align-items: center;
border: 1px dashed #d7c3f0;
animation: pulse-soft 1.5s infinite;
}
.cooldown-timer i {
margin-right: 8px;
color: #d873a9;
animation: spin 2s linear infinite;
}
.char-count {
font-size: 0.8em;
color: #aa67e5;
margin-left: 10px;
background-color: #f8f4ff;
padding: 3px 8px;
border-radius: 10px;
font-weight: normal;
transition: all 0.2s ease;
}
.char-count-limit {
background-color: #ffebf3;
color: #e65c8f;
animation: pulse 0.5s ease;
}
@keyframes pulse-soft {
0% {
box-shadow: 0 0 0 0 rgba(170, 103, 229, 0.2);
}
70% {
box-shadow: 0 0 0 8px rgba(170, 103, 229, 0);
}
100% {
box-shadow: 0 0 0 0 rgba(170, 103, 229, 0);
}
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.appear {
animation: appear 0.5s ease-out;
}
@keyframes appear {
0% {
opacity: 0;
transform: translateY(20px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
footer {
margin-top: 40px;
color: #a07bb8;
font-size: 0.9em;
}
footer i {
color: #ff85a2;
}
.admin-link {
margin-top: 10px;
font-size: 0.8em;
}
.admin-link a {
color: #a07bb8;
text-decoration: none;
opacity: 0.7;
transition: all 0.2s ease;
}
.admin-link a:hover {
opacity: 1;
text-decoration: underline;
}
@media (max-width: 768px) {
body {
padding: 10px;
}
.container {
padding: 20px 15px;
width: 95%;
}
h1 {
font-size: 2em;
}
.wave-container {
height: 120px;
}
}
@media (max-width: 480px) {
h1 {
font-size: 1.7em;
}
h2 {
font-size: 1.3em;
}
.bottle-info small {
display: block;
margin-bottom: 5px;
}
button {
padding: 10px 20px;
font-size: 0.95em;
width: 100%;
}
}
/* 波浪动画 */
.wave-container {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
height: 200px;
overflow: hidden;
z-index: -1;
}
.wave {
position: absolute;
bottom: 0;
left: 0;
width: 200%;
height: 100%;
background-repeat: repeat-x;
background-position: 0 bottom;
transform-origin: center bottom;
}
.wave1 {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 88.7'%3E%3Cpath d='M800 56.9c-155.5 0-204.9-50-405.5-49.9-200 0-250 49.9-394.5 49.9v31.8h800v-.2-31.6z' fill='%23f8d8eb' fill-opacity='0.4'/%3E%3C/svg%3E");
background-size: 50% 100px;
animation: wave 25s -3s linear infinite;
opacity: 0.6;
z-index: 1;
}
.wave2 {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 88.7'%3E%3Cpath d='M800 56.9c-155.5 0-204.9-50-405.5-49.9-200 0-250 49.9-394.5 49.9v31.8h800v-.2-31.6z' fill='%23e6c0e9' fill-opacity='0.3'/%3E%3C/svg%3E");
background-size: 50% 120px;
animation: wave 20s linear reverse infinite;
opacity: 0.4;
z-index: 0;
}
@keyframes wave {
0% {transform: translateX(0) translateZ(0) scaleY(1)}
50% {transform: translateX(-25%) translateZ(0) scaleY(0.8)}
100% {transform: translateX(-50%) translateZ(0) scaleY(1)}
}
/* 标题和介绍文字 */
.heart-icon {
color: #ff6b9c;
margin: 0 8px;
animation: pulse 1.5s infinite;
display: inline-block;
}
@keyframes pulse {
0% {transform: scale(1);}
50% {transform: scale(1.2);}
100% {transform: scale(1);}
}
.tagline {
color: #9d7bb0;
margin-bottom: 25px;
font-style: italic;
font-size: 1.1em;
}
.motto-container {
background-color: #fff;
border-radius: 12px;
padding: 18px 20px;
margin-bottom: 25px;
border-left: 5px solid #aa67e5;
box-shadow: 0 3px 15px rgba(160, 120, 200, 0.12);
text-align: center;
position: relative;
font-family: '楷体', 'STKaiti', '华文楷体', KaiTi, '宋体', SimSun, sans-serif;
}
.motto-container i {
color: #d291bc;
font-size: 1rem;
opacity: 0.7;
margin: 0 8px;
}
.motto-container i.fa-quote-left {
position: relative;
top: -5px;
left: -3px;
}
.motto-container i.fa-quote-right {
position: relative;
bottom: -5px;
right: -3px;
}
#random-motto {
font-size: 1.3em;
color: #7d5ba6;
font-weight: bold;
line-height: 1.5;
}
.stats-container {
background-color: #f8e4ff;
border-radius: 12px;
padding: 12px 15px;
margin-bottom: 25px;
border: 1px dashed #d7b5f3;
box-shadow: 0 3px 10px rgba(160, 120, 200, 0.1);
}
.stats-container p {
margin: 0;
color: #8a5fad;
font-weight: 600;
font-size: 1.05em;
}
.stats-container i {
margin-right: 8px;
color: #d873a9;
}
#total-bottles {
display: inline-block;
background-color: #fff;
padding: 3px 10px;
border-radius: 20px;
margin: 0 5px;
color: #aa67e5;
font-weight: bold;
min-width: 30px;
}