/**
 * 页面专属样式：text-diff
 * 作用域：body.page-text-diff
 * 由 css/components.css 于 2026-11-03 拆出，只在该页面加载。
 * 新增同类样式请写进本文件，不要退回 components.css。
 */
/* ===== 页面样式：text-diff（2026-10-31 由内联迁入） ===== */
body.page-text-diff {
    min-height: 100vh
}

body.page-text-diff .container {
    
            margin: 0 auto;
            background: white;
            border-radius: 12px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
            overflow: hidden;
        
}

body.page-text-diff .header {
    
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: white;
            padding: 3rem 2rem;
            text-align: center;
        
}

body.page-text-diff .header h1 {
    
            font-size: 2.5rem;
            margin-bottom: 0.5rem;
        
}

body.page-text-diff .header p {
    
            font-size: 1rem;
            opacity: 0.9;
        
}

body.page-text-diff .content {
    
            padding: 2rem;
        
}

body.page-text-diff .info-box {
    
            background: var(--accent-tint);
            border-left: 4px solid var(--primary);
            padding: 1rem;
            border-radius: 4px;
            margin-bottom: 2rem;
            color: var(--primary-dark);
            font-size: 0.95rem;
        
}

body.page-text-diff .editor-container {
    
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
            margin-bottom: 2rem;
        
}

body.page-text-diff .editor-panel {
    
            display: flex;
            flex-direction: column;
        
}

body.page-text-diff .editor-label {
    
            font-size: 1rem;
            font-weight: 600;
            color: var(--text-dark);
            margin-bottom: 0.5rem;
        
}

body.page-text-diff .editor-actions {
    
            display: flex;
            gap: 0.5rem;
            margin-bottom: 0.5rem;
            font-size: 0.85rem;
        
}

body.page-text-diff .btn-small {
    
            padding: 0.4rem 0.8rem;
            border: 1px solid var(--border);
            background: var(--bg-light);
            border-radius: 4px;
            cursor: pointer;
            font-size: 0.85rem;
            transition: all 0.3s;
        
}

body.page-text-diff .btn-small:hover {
    
            background: var(--border);
        
}

body.page-text-diff textarea {
    
            flex: 1;
            padding: 1rem;
            border: 1px solid var(--border);
            border-radius: 8px;
            font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
            font-size: 0.9rem;
            resize: none;
            line-height: 1.5;
        
}

body.page-text-diff textarea:focus {
    
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(192, 40, 30, 0.1);
        
}

body.page-text-diff .result-container {
    
            margin-bottom: 2rem;
        
}

body.page-text-diff .result-label {
    
            font-size: 1rem;
            font-weight: 600;
            color: var(--text-dark);
            margin-bottom: 1rem;
        
}

body.page-text-diff .diff-view {
    
            background: var(--bg-light);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 1rem;
            font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
            font-size: 0.9rem;
            line-height: 1.6;
            max-height: 500px;
            overflow-y: auto;
        
}

body.page-text-diff .diff-line {
    
            padding: 0.25rem 0.5rem;
            margin: 0.25rem 0;
            border-radius: 3px;
            white-space: pre-wrap;
            word-break: break-all;
        
}

body.page-text-diff .diff-add {
    
            background: rgba(91, 122, 58, 0.14);
            color: var(--success);
        
}

body.page-text-diff .diff-remove {
    
            background: var(--accent-tint);
            color: var(--error);
        
}

body.page-text-diff .diff-context {
    
            background: white;
            color: var(--text-dark);
        
}

body.page-text-diff .diff-header {
    
            background: rgba(192, 40, 30, 0.08);
            color: var(--primary);
            padding: 0.5rem;
            margin: 0.5rem 0;
            border-radius: 3px;
            font-weight: 600;
        
}

body.page-text-diff .stats {
    
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1rem;
            margin-bottom: 2rem;
        
}

body.page-text-diff .stat-item {
    
            background: var(--bg-light);
            padding: 1rem;
            border-radius: 8px;
            text-align: center;
            border-left: 4px solid var(--border);
        
}

body.page-text-diff .stat-item.added {
    
            border-left-color: var(--success);
        
}

body.page-text-diff .stat-item.removed {
    
            border-left-color: var(--error);
        
}

body.page-text-diff .stat-item.total {
    
            border-left-color: var(--primary);
        
}

body.page-text-diff .stat-number {
    
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 0.25rem;
        
}

body.page-text-diff .stat-label {
    
            font-size: 0.85rem;
            color: var(--text-light);
        
}

body.page-text-diff .actions {
    
            display: flex;
            gap: 1rem;
            margin-bottom: 2rem;
        
}

body.page-text-diff .btn {
    
            flex: 1;
            padding: 1rem;
            border: none;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
        
}

body.page-text-diff .btn-primary {
    
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: white;
        
}

body.page-text-diff .btn-primary:hover {
    
            transform: translateY(-2px);
            box-shadow: 0 8px 16px rgba(192, 40, 30, 0.3);
        
}

body.page-text-diff .btn-secondary {
    
            background: var(--bg-light);
            color: var(--text-dark);
            border: 1px solid var(--border);
        
}

body.page-text-diff .btn-secondary:hover {
    
            background: var(--border);
        
}

body.page-text-diff .empty-state {
    
            text-align: center;
            color: var(--text-muted);
            padding: 3rem 1rem;
        
}

body.page-text-diff .empty-state-icon {
    
            font-size: 3rem;
            margin-bottom: 1rem;
        
}
