/*
 * Django Admin 全局配色
 * 主色 #4A3A6B：标题、关键文字
 * 强调色 #D4AF37：边框、按钮、装饰
 * 辅助色 #7B6A9C：次级文字、标签
 * 背景色 #FAF7F2：页面背景
 */

/* 页面基础 */
body {
    background-color: #FAF7F2;
    color: #4A3A6B;
}

#container {
    background-color: #FAF7F2;
}

#content {
    background-color: #FAF7F2;
}

#content-main {
    background-color: #FAF7F2;
}

#content-related {
    background-color: #fff;
    border: 1px solid #D4AF37;
}

/* 顶部导航 */
#header {
    background-color: #4A3A6B;
    color: #FAF7F2;
    border-bottom: 3px solid #D4AF37;
}

#branding h1 {
    color: #FAF7F2;
}

#branding h1 a:link,
#branding h1 a:visited {
    color: #FAF7F2;
}

#user-tools {
    color: #FAF7F2;
}

#user-tools a:link,
#user-tools a:visited {
    color: #D4AF37;
}

#user-tools a:hover,
#user-tools a:focus {
    color: #FAF7F2;
}

/* 面包屑 */
div.breadcrumbs {
    background-color: #7B6A9C;
    color: #FAF7F2;
    border-bottom: 1px solid #D4AF37;
}

div.breadcrumbs a {
    color: #FAF7F2;
}

div.breadcrumbs a:hover,
div.breadcrumbs a:focus {
    color: #D4AF37;
}

/* 链接 */
a:link,
a:visited {
    color: #4A3A6B;
}

a:hover,
a:focus {
    color: #D4AF37;
}

/* 标题 */
h1 {
    color: #4A3A6B;
}

h2,
h3,
h4 {
    color: #4A3A6B;
}

/* 模块标题 */
.module h2,
.module caption,
.inline-group h2 {
    background-color: #4A3A6B;
    color: #FAF7F2;
    border-bottom: 1px solid #D4AF37;
}

/* 表格 */
table {
    border: 1px solid #D4AF37;
}

thead th {
    background-color: #4A3A6B;
    color: #FAF7F2;
    border-bottom: 1px solid #D4AF37;
}

thead th a:link,
thead th a:visited {
    color: #FAF7F2;
}

tbody tr:nth-child(odd) {
    background-color: #FAF7F2;
}

tbody tr:hover {
    background-color: #f0e6d3;
}

td,
th {
    border-bottom: 1px solid #D4AF37;
}

/* 按钮 */
.button,
input[type="submit"],
input[type="button"],
.submit-row input,
a.button {
    background-color: #D4AF37;
    color: #4A3A6B;
    border: 1px solid #D4AF37;
}

.button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.submit-row input:hover,
a.button:hover,
.button:focus,
input[type="submit"]:focus,
input[type="button"]:focus {
    background-color: #c49f2c;
    color: #fff;
}

.button.default,
input[type="submit"].default,
.submit-row input.default {
    background-color: #4A3A6B;
    color: #FAF7F2;
    border: 1px solid #4A3A6B;
}

.button.default:hover,
input[type="submit"].default:hover,
.submit-row input.default:hover {
    background-color: #3a2d55;
    color: #FAF7F2;
}

/* 删除按钮 */
a.deletelink:link,
a.deletelink:visited {
    color: #c0392b;
}

a.deletelink:hover,
a.deletelink:focus {
    color: #a93226;
}

/* 表单 */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="url"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
textarea,
select,
.vTextField {
    border: 1px solid #D4AF37;
    color: #4A3A6B;
    background-color: #fff;
}

input:focus,
textarea:focus,
select:focus,
.vTextField:focus {
    border-color: #4A3A6B;
    outline: none;
}

label {
    color: #7B6A9C;
}

.required label,
label.required {
    color: #4A3A6B;
}

/* 帮助文字 */
.help,
p.help,
.form-row div.help {
    color: #7B6A9C;
}

/* 错误提示 */
.errornote,
ul.errorlist {
    color: #c0392b;
    border: 1px solid #c0392b;
    background-color: #fdecea;
}

/* 侧边栏过滤 */
#changelist-filter {
    background-color: #fff;
    border-left: 1px solid #D4AF37;
}

#changelist-filter h2 {
    background-color: #4A3A6B;
    color: #FAF7F2;
    border-bottom: 1px solid #D4AF37;
}

#changelist-filter h3 {
    color: #4A3A6B;
}

#changelist-filter a {
    color: #4A3A6B;
}

#changelist-filter a:hover,
#changelist-filter a:focus {
    color: #D4AF37;
}

#changelist-filter li.selected a {
    color: #D4AF37;
}

/* 登录页 */
.login #header {
    background-color: #4A3A6B;
    border-bottom: 3px solid #D4AF37;
}

.login #container {
    background-color: #FAF7F2;
    border: 1px solid #D4AF37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.login .submit-row {
    padding: 1em 0 0;
    margin: 0;
    border: none;
    background: transparent;
}

.login .submit-row input {
    width: 100%;
    background-color: #D4AF37;
    color: #4A3A6B;
}

.login .submit-row input:hover {
    background-color: #c49f2c;
    color: #fff;
}

/* 分页 */
.paginator a,
.paginator a:link,
.paginator a:visited {
    background-color: #FAF7F2;
    color: #4A3A6B;
    border: 1px solid #D4AF37;
}

.paginator a:hover,
.paginator a:focus {
    background-color: #D4AF37;
    color: #4A3A6B;
}

.paginator .this-page {
    background-color: #4A3A6B;
    color: #FAF7F2;
    border: 1px solid #4A3A6B;
}

/* 操作列表 */
ul.messagelist li {
    border-bottom: 1px solid #D4AF37;
}

ul.messagelist li.success {
    background-color: #4A3A6B;
    color: #FAF7F2;
}

/* 选中行 */
tbody tr.selected {
    background-color: #f0e6d3;
}
