/* public/style.css */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 1200px; /* 增加最大宽度 */
    text-align: center;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.header-buttons {
    display: flex;
    gap: 1rem;
}

header h1, main h2 {
    color: #333;
    margin: 0;
}

.form-group {
    margin-bottom: 1rem;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

button, .button {
    background-color: #007bff;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    margin: 0.5rem;
    transition: background-color 0.3s;
}

button:hover, .button:hover {
    background-color: #0056b3;
}

.logout-button {
    background-color: #dc3545;
}

.logout-button:hover {
    background-color: #c82333;
}

.error {
    color: #dc3545;
    margin-top: 1rem;
}

footer {
    margin-top: 2rem;
    color: #666;
    font-size: 0.9rem;
}

.file-options {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#utc-time {
    font-family: 'Fira Code', 'JetBrains Mono', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 2.5rem; /* 进一步增大时间显示 */
    font-weight: bold;
    margin: 1.5rem 0;
    color: #007bff;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

#visitor-info {
    text-align: left;
    margin: 2rem auto;
    width: 100%;
}

/* 两列布局 */
.visitor-info-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.info-section {
    text-align: left;
    padding: 1.5rem;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.info-section h3 {
    margin-top: 0;
    color: #007bff;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
}

.info-section p {
    margin: 0.7rem 0;
    font-size: 1rem;
    line-height: 1.5;
}

.info-section span {
    font-weight: bold;
    color: #333;
}

#user-agent {
    word-break: break-all;
    font-size: 0.9rem;
}

.navigation-buttons {
    margin-top: 2rem;
}

.node-links {
    text-align: left;
}

.link-category {
    margin-bottom: 2rem;
}

.link-category h2 {
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
}

.link-category ul {
    list-style-type: none;
    padding: 0;
}

.link-category li {
    margin: 0.5rem 0;
}

.link-category a {
    color: #007bff;
    text-decoration: none;
    font-size: 1.1rem;
}

.link-category a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
        max-width: 100%;
    }
    
    header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .header-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .visitor-info-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    #utc-time {
        font-size: 1.8rem;
        padding: 0.8rem;
    }
    
    .info-section {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    #utc-time {
        font-size: 1.5rem;
    }
}