/* 管理链接样式 */
.admin-links {
    position: absolute;
    right: 20px;
    top: 20px;
    display: flex;
    gap: 10px;
}

.admin-links a.admin-link {
    position: static;
    margin: 0;
    white-space: nowrap;
}

/* 调整header高度以适应链接 */
header {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 10px 1rem;
}

header h1 {
    margin: 0;
    padding: 0;
}
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

header {
    background: #333;
    color: #fff;
    padding: 1rem;
    text-align: center;
    position: relative;
}

header h1 {
    margin: 0;
}

.admin-link {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #fff;
    text-decoration: none;
    background: #4CAF50;
    padding: 5px 10px;
    border-radius: 4px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.gallery-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.gallery-item h3 {
    padding: 10px;
    margin: 0;
    font-size: 1rem;
    text-align: center;
}

.gallery-item a {
    text-decoration: none;
    color: #333;
}

/* 登录/设置页面样式 */
.login-container, .setup-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

input[type="text"],
input[type="password"],
input[type="url"],
input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

button, .login-btn {
    width: 100%;
    padding: 12px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.error {
    color: #f44336;
    margin-bottom: 15px;
    padding: 10px;
    background: #ffebee;
    border-radius: 4px;
}

.message {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.success {
    background: #dff0d8;
    color: #3c763d;
}

.notice {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border-left: 4px solid #ffeeba;
}

.requirements {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}