/* style.css - 蓝白简洁风格，直角设计，全设备兼容 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #e6f0fa;  /* 浅蓝背景 */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: #1e2a3a;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    max-width: 900px;
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #b8d1f0;
    padding: 24px;
    box-shadow: 0 4px 8px rgba(0, 40, 80, 0.1);
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #0b3b5c;
    border-left: 6px solid #2a7de1;
    padding-left: 16px;
}

h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0 0.5rem;
    color: #1e4a7a;
}

hr {
    border: none;
    border-top: 2px solid #d0e2ff;
    margin: 1.5rem 0;
}

p {
    margin-bottom: 0.75rem;
}

a {
    color: #1a5bbf;
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    text-decoration: underline;
}

button, input[type="submit"], .button {
    background-color: #2a7de1;
    color: white;
    border: none;
    font-size: 1rem;
    padding: 8px 20px;
    cursor: pointer;
    font-weight: 500;
    border-radius: 0;  /* 直角 */
    transition: background-color 0.2s;
    display: inline-block;
}

button:hover, input[type="submit"]:hover, .button:hover {
    background-color: #1b5bbf;
    text-decoration: none;
}

input[type="text"], 
input[type="password"], 
input[type="email"], 
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #b0c9e8;
    font-size: 1rem;
    border-radius: 0;
    background-color: #f9fcff;
}

input[type="text"]:focus, 
input[type="password"]:focus, 
input[type="email"]:focus, 
textarea:focus {
    outline: none;
    border-color: #2a7de1;
    background-color: #ffffff;
}

textarea {
    font-family: 'Courier New', monospace;
    resize: vertical;
}

ul {
    list-style: none;
    margin-top: 1.2rem;
}

li {
    padding: 12px 0;
    border-bottom: 1px solid #e0ecff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

li:last-child {
    border-bottom: none;
}

li a {
    background-color: #eef3fc;
    padding: 4px 12px;
    border: 1px solid #b9d3f0;
    color: #134079;
    font-size: 0.9rem;
    transition: background 0.2s;
}

li a:hover {
    background-color: #d4e4ff;
    text-decoration: none;
}

.button-group {
    margin: 1rem 0;
}

.error {
    color: #b22222;
    background-color: #ffeaea;
    border: 1px solid #ffbaba;
    padding: 10px;
    margin-bottom: 1rem;
}

.success {
    color: #1e6f3f;
    background-color: #e6f9ed;
    border: 1px solid #a0e0b5;
    padding: 10px;
    margin-bottom: 1rem;
}

/* 项目列表中的项目名称 */
li > :first-child {
    font-weight: 600;
    min-width: 150px;
}

/* 响应式 */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    .container {
        padding: 16px;
    }
    li {
        flex-direction: column;
        align-items: flex-start;
    }
    li a {
        margin-left: 0;
    }
}