/* 用于整个页面的样式 */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 600px;
    margin: 20px auto;
    background-color:transparent;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.5s ease;
    
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

h2 {
    color: #333;
    text-align: center;
}

/* 表单样式 */
form {
    margin-bottom: 20px;
}

label {
    font-weight: bold;
    background-color:transparent;
}

input[type="text"],
textarea {
    width: calc(100% - 16px); /* 考虑输入框的边框宽度 */
    padding: 8px;
    margin-top: 5px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

input[type="submit"] {
    background-color: #4caf50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
    background-color: #45a049;
}

/* 留言样式 */
.message {
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.message strong {
    color: #333;
}

.message small {
    color: #999;
    font-style: italic;
}
/* 在管理后台页面上的样式 */
table {
    width: 100%;
    border-collapse: collapse;
}


.delete-button {
    background-color: #ff3333;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.delete-button:hover {
    background-color: #cc0000;
}
/*span{
    width: 500px;        
font-size: 20px;        
font-weight: bold;        
-webkit-text-fill-color: transparent;        
background: linear-gradient(94.75deg,rgb(60, 172, 247) 0%,rgb(131, 101, 253) 43.66%,                rgb(255, 141, 112) 64.23%,rgb(247, 201, 102) 83.76%,rgb(172, 143, 100) 100%);        
-webkit-background-clip: text;
}*/
p {
  text-shadow: 2px 2px pink;
}

/* 添加卡片样式 */
.message-card {
    background: rgba(255, 255, 255, 0.8); /* 半透明背景 */
    border-radius: 10px; /* 圆角 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 阴影 */
    padding: 15px;
    margin: 10px 0;
    max-width: 600px;
    width: 100%;
}

input[type="text"], textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 10px;
}

input[type="submit"] {
    background: linear-gradient(to right, #03a9f4, #00bcd4);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

input[type="submit"]:hover {
    background: linear-gradient(to right, #00bcd4, #03a9f4);
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333; /* 深灰色文字 */
}

h2 {
    color: #03a9f4; /* 主色调 */
}

.message-card:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

input[type="submit"]:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

body {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

input[type="text"]:focus, textarea:focus {
    border-color: #03a9f4;
    box-shadow: 0 0 8px rgba(3, 169, 244, 0.5);
    transition: all 0.3s ease;
}

.message-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin: 10px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.message-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

h2 {
    font-size: 2.5em;
    color: #03a9f4;
    margin-bottom: 20px;
}

p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #333;
}

small {
    font-size: 0.9em;
    color: #777;
}

input[type="submit"] {
    background: linear-gradient(to right, #03a9f4, #00bcd4);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.2s ease;
}

input[type="submit"]:active {
    transform: scale(0.95);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.message-card {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.message-card:nth-child(1) { animation-delay: 0.1s; }
.message-card:nth-child(2) { animation-delay: 0.2s; }
.message-card:nth-child(3) { animation-delay: 0.3s; }
/* 根据需要添加更多延迟 */

.favicon {
        background-image: url("favicon.ico");
        background-size: cover;
        width: 16px;
        height: 16px;
    }