/* 通用基础样式 */
body.base {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 背景图片叠加层 */
body.dog-background {
    /* position: relative; */
}

body.dog-background::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.return-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1em;
    color: #ffffff;
    background-color: #4b0082;
    /* 靛蓝色背景 */
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-bottom: 20px;
    /* 增加与其他元素的间距 */
}

.return-button-green {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1em;
    color: #ffffff;
    background-color: #0b7610;
    /* 靛蓝色背景 */
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-bottom: 20px;
    /* 增加与其他元素的间距 */
}

.colorp{
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
    color:rgb(14, 152, 95);
    background: linear-gradient(90deg, #a8c7a1, #94b896, #7ca482); /* 低饱和绿色渐变 */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; /* 文字透明，显示背景色 */
    text-transform: uppercase;         /* 全部转为大写 */
    letter-spacing: 2px;               /* 增加字间距 */
    text-align: center;                /* 居中对齐 */
}

.horizontal-container{
    display: flex;
    background-color: #f4f4f4;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

/* 基础样式 */
/* body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f9fc;
    color: #333;
    line-height: 1.6;
} */

a.return-button {
    display: inline-block;
    margin: 20px;
    padding: 10px 15px;
    background-color: #4CAF50;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

a.return-button:hover {
    background-color: #45a049;
}

p.colorp {
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
    color: #4CAF50;
    margin: 20px 0;
}

/* 表单样式 */
form {
    text-align: center;
    margin: 20px 0;
}

form input[type="text"] {
    width: 250px;
    padding: 10px;
    margin: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

form input[type="file"] {
    width: 250px;
    padding: 10px;
    margin: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}


form textarea {
    width: 80%;
    max-width: 600px;
    height: 100px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    resize: none;
}

form button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #45a049;
}

/* 单词列表 */
h2 {
    text-align: center;
    color: #333;
}

div.word-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin: 10px auto;
    padding: 15px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

div.word-item p {
    margin: 0;
    font-size: 1.2em;
    color: #333;
}

div.word-item form {
    display: inline-block;
    margin: 10px 5px 0 0;
}

div.word-item form button {
    background-color: #2196F3;
    color: #fff;
}

div.word-item form button:hover {
    background-color: #1E88E5;
}

/* 分页导航 */
div.pagination {
    text-align: center;
    margin: 20px 0;
}

div.pagination a {
    margin: 0 5px;
    padding: 8px 12px;
    background-color: #4CAF50;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1em;
}

div.pagination a:hover {
    background-color: #45a049;
}

div.pagination span {
    font-size: 1em;
    color: #333;
}