/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f7f9fc;
}

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

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-note-btn {
    background-color: #4caf50;
    color: white;
}

.add-note-btn:hover {
    background-color: #45a049;
}

.save-btn {
    background-color: #2196f3;
    color: white;
}

.save-btn:hover {
    background-color: #0b7dda;
}

.cancel-btn {
    background-color: #f44336;
    color: white;
    margin-left: 10px;
}

.cancel-btn:hover {
    background-color: #d32f2f;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    border-radius: 0 0 10px 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.site-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.site-description {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 主要内容区域 */
.main-content {
    padding: 20px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 1.8rem;
    color: #333;
}

/* 笔记表单 */
.note-form-container {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: none;
}

.note-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
}

.form-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 10px;
}

/* 笔记容器 */
.notes-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.note-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.note-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.note-header {
    margin-bottom: 10px;
}

.note-title {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #333;
}

.note-date {
    font-size: 0.8rem;
    color: #888;
}

.note-content {
    color: #555;
    line-height: 1.6;
}

/* 关于部分 */
.about-section {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    margin-top: 40px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.about-section h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
}

.about-section p {
    margin-bottom: 15px;
    color: #555;
}

/* 页脚 */
.footer {
    background-color: #333;
    color: white;
    padding: 30px 0;
    margin-top: 50px;
    border-radius: 10px 10px 0 0;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    margin: 5px 0;
    font-size: 14px;
}

.beian-links {
    margin: 15px 0;
}

.beian-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.beian-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.separator {
    color: #666;
    margin: 0 10px;
}

.site-info {
    font-size: 12px !important;
    color: #888;
    margin-top: 15px !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        padding: 40px 0;
    }

    .site-title {
        font-size: 2rem;
    }

    .site-description {
        font-size: 1rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .notes-container {
        grid-template-columns: 1fr;
    }
}