/* style.css - 极简样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

header h1 {
    font-size: 2.2em;
    margin-bottom: 5px;
}

.subtitle {
    opacity: 0.9;
    font-size: 0.95em;
}

.note-form {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

#noteContent {
    width: 100%;
    height: 100px;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.3s;
}

#noteContent:focus {
    outline: none;
    border-color: #4facfe;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

#charCount {
    color: #666;
    font-size: 0.9em;
}

#addNote {
    background: #4facfe;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

#addNote:hover {
    background: #3a9bfd;
}

#addNote:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.notes-list {
    padding: 20px;
}

.note-item {
    background: #f8f9fa;
    border-left: 4px solid #4facfe;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    animation: fadeIn 0.3s ease;
}

.note-content {
    margin-bottom: 10px;
    line-height: 1.5;
}

.note-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85em;
    color: #666;
}

.delete-btn {
    color: #ff6b6b;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9em;
}

.delete-btn:hover {
    text-decoration: underline;
}

.empty-state {
    text-align: center;
    color: #666;
    padding: 40px 20px;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .container {
        border-radius: 8px;
    }
    
    header h1 {
        font-size: 1.8em;
    }
}