// Author: 小熊猫&初心
// Lisect © 2025

/* 基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.container {
    padding: 0;
}

/* 头部样式 */
.header-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 20px;
    margin: 0;
}

.header-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-weight: bold;
    font-size: 16px;
}

.header-title {
    font-size: 18px;
    font-weight: 600;
}

.like-section {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
}

.like-icon {
    margin-right: 6px;
}

.like-text {
    font-size: 14px;
}

.header-subtitle {
    margin-top: 8px;
    font-size: 14px;
    opacity: 0.9;
}

/* 输入区域 */
.input-section {
    background: white;
    margin: 0;
    border-bottom: 1px solid #e5e7eb;
}

.input-header {
    background: #f9fafb;
    padding: 12px 20px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.section-icon {
    margin-right: 8px;
}

.text-area {
    width: 100%;
    height: 200px;
    padding: 16px 20px;
    border: none;
    resize: none;
    outline: none;
    font-size: 14px;
    line-height: 1.6;
}

.input-footer {
    background: #f9fafb;
    padding: 12px 20px;
    font-size: 13px;
    color: #6b7280;
    border-top: 1px solid #e5e7eb;
}

.char-counter {
    display: flex;
    align-items: center;
}

/* 快捷键提示 */
.shortcut-tips {
    background: #fef3c7;
    padding: 12px 20px;
    font-size: 13px;
    color: #92400e;
    border-bottom: 1px solid #e5e7eb;
}

.tip-icon {
    margin-right: 8px;
}

/* 功能区域 */
.function-section {
    background: white;
    margin: 0;
    border-bottom: 1px solid #e5e7eb;
}

.section-header {
    background: #f9fafb;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.button-row {
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* 按钮样式 */
.convert-btn, .action-btn {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.convert-btn:hover, .action-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.convert-btn:active, .action-btn:active {
    transform: translateY(1px);
}

/* 操作按钮特殊颜色 */
.action-btn.copy { background: #fef3c7; border-color: #fbbf24; }
.action-btn.cut { background: #dbeafe; border-color: #3b82f6; }
.action-btn.clear { background: #fecaca; border-color: #ef4444; }
.action-btn.select { background: #d1fae5; border-color: #10b981; }

.action-btn.copy:hover { background: #fde68a; }
.action-btn.cut:hover { background: #bfdbfe; }
.action-btn.clear:hover { background: #fca5a5; }
.action-btn.select:hover { background: #a7f3d0; }

/* 响应式 */
@media (max-width: 768px) {
    .button-row {
        padding: 12px 16px;
        gap: 6px;
    }
    
    .convert-btn, .action-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .header-section,
    .input-header,
    .input-footer,
    .shortcut-tips,
    .section-header {
        padding-left: 16px;
        padding-right: 16px;
    }
}
/* 版权信息 */
.footer-section {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 20px 0;
    margin-top: 0;
}

.copyright-content {
    text-align: center;
    color: #64748b;
    font-size: 13px;
}

.copyright-text {
    margin-bottom: 8px;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
}

.footer-link {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #3b82f6;
}

.separator {
    margin: 0 12px;
    color: #cbd5e1;
}

@media (max-width: 640px) {
    .footer-links {
        flex-direction: column;
        gap: 8px;
    }
    
    .separator {
        display: none;
    }
}

