* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f5f6f8;
    color: #222;
}

.container {
    max-width: 980px;
    margin: 40px auto;
    padding: 0 20px;
}

.container.small {
    max-width: 420px;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.nav a {
    margin-left: 12px;
    text-decoration: none;
    color: #2c6bed;
}

h1 {
    margin: 0;
    font-size: 24px;
}

h2 {
    margin-top: 0;
}

.card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

input[type="text"],
input[type="password"],
input[type="file"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    margin-bottom: 12px;
}

button {
    padding: 10px 16px;
    background: #2c6bed;
    border: none;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
}

button.danger {
    background: #e34d4d;
}

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.alert-error {
    background: #ffe7e7;
    color: #a82424;
}

.alert-success {
    background: #e8f7ee;
    color: #1f7a3b;
}

.hint {
    color: #666;
    font-size: 13px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px 8px;
    border-bottom: 1px solid #eee;
    text-align: left;
    vertical-align: top;
}

.thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
}
