* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}

header h1 {
    font-size: 24px;
    color: #1a1a2e;
}

nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #4a90d9;
    font-weight: 500;
}

nav a:hover {
    color: #357abd;
}

main {
    padding: 40px 0;
}

.welcome {
    text-align: center;
    margin-bottom: 40px;
}

.welcome h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.welcome p {
    color: #666;
    font-size: 16px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.feature-card {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.feature-card p {
    color: #666;
    font-size: 14px;
}

/* WebSocket 状态 */
.ws-status {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.status-connected {
    display: inline-block;
    padding: 4px 12px;
    background: #d4edda;
    color: #155724;
    border-radius: 4px;
    font-size: 14px;
    margin-right: 10px;
}

.status-disconnected {
    display: inline-block;
    padding: 4px 12px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 4px;
    font-size: 14px;
    margin-right: 10px;
}

/* 上传区域 */
.upload-section {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.upload-section h3 {
    margin-bottom: 16px;
}

#upload-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

#upload-result {
    margin-top: 12px;
    padding: 8px;
}

#upload-result a {
    color: #4a90d9;
    word-break: break-all;
}

/* 按钮 */
button {
    padding: 8px 16px;
    background: #4a90d9;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

button:hover {
    background: #357abd;
}

footer {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #ddd;
    color: #999;
    font-size: 14px;
}
