/* About page styles */

.about-container {
    max-width: 800px;
    margin: 0 auto;
}

.about-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.about-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.about-description {
    color: #6b7280;
    font-size: 1.125rem;
}

/* 关于内容 */
.about-content {
    margin-bottom: 3rem;
}

.about-section {
    margin-bottom: 2rem;
}

.about-section h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.about-section p {
    color: #4b5563;
    line-height: 1.7;
}

.tech-stack {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tech-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #e5e7eb;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.6;
}

/* 留言板 */
.guestbook {
    border-top: 1px solid var(--border-color);
    padding-top: 3rem;
}

.guestbook-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* 留言表单 */
.comment-form {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.form-row {
    margin-bottom: 0.75rem;
}

.form-row-inline {
    display: flex;
    gap: 0.75rem;
}

.form-row-inline input {
    flex: 1;
}

.form-row input,
.form-row textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--text-color);
    background: white;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.15s;
}

.form-row input:focus,
.form-row textarea:focus {
    border-color: var(--primary-color, #10b981);
}

.form-row textarea {
    resize: vertical;
    min-height: 80px;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hint {
    font-size: 0.8125rem;
    color: #9ca3af;
}

.btn-submit {
    padding: 0.5rem 1.25rem;
    background: var(--primary-color, #10b981);
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.15s;
}

.btn-submit:hover {
    opacity: 0.9;
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 留言列表 */
.comments {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment {
    display: flex;
    gap: 0.75rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
}

.comment.pending {
    border-left: 3px solid #f59e0b;
}

.comment-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #10b981;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 600;
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.375rem;
}

.comment-nickname {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-color);
}

.comment-time {
    font-size: 0.75rem;
    color: #9ca3af;
}

.comment-content {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #4b5563;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.comments-empty {
    padding: 2rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* 管理员操作 */
.comment-admin-actions {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.5rem;
}

.btn-approve,
.btn-reject {
    padding: 0.25rem 0.75rem;
    border: none;
    border-radius: 0.25rem;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: opacity 0.15s;
}

.btn-approve {
    background: #10b981;
    color: white;
}

.btn-approve:hover {
    opacity: 0.85;
}

.btn-reject {
    background: #fee2e2;
    color: #ef4444;
}

.btn-reject:hover {
    opacity: 0.85;
}

/* 管理页面 */
.admin-section {
    margin-bottom: 3rem;
}

.admin-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.back-link {
    font-weight: 500;
    color: var(--primary-color, #10b981);
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}
